-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Source MySQL: Connector fails if source contains "tricky" date values #3931
Comments
Confirmed in:
|
Is this solvable by adding jdbc_params? see this comment and linked question: |
* move logic from static JdbcUtils to JdbcSourceOperations * format * Add methods for all types in order to have possibility rewrite them and use common type mapping. * Make BigQuery in line impl with JDBC changes * fix binary type * add database creations methods with sourceOperations input * add MySqlSourceOperations * fix processing * Fix CDC processing * format * add some tests for double and float * incr version * #3931 #3932 added zero-date converting to null param "zeroDateTimeBehavior=convertToNull" * remove old tests covered by data type tests + incr ver * Update airbyte-integrations/connectors/destination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java Co-authored-by: Sherif A. Nada <[email protected]> * Update docs/integrations/sources/mysql.md Co-authored-by: Sherif A. Nada <[email protected]> * add back comments to the data type mapping * incr config version Co-authored-by: Oleksandr Sheheda <[email protected]> Co-authored-by: Sherif A. Nada <[email protected]>
* move logic from static JdbcUtils to JdbcSourceOperations * format * Add methods for all types in order to have possibility rewrite them and use common type mapping. * Make BigQuery in line impl with JDBC changes * fix binary type * add database creations methods with sourceOperations input * add MySqlSourceOperations * fix processing * Fix CDC processing * format * add some tests for double and float * incr version * airbytehq#3931 airbytehq#3932 added zero-date converting to null param "zeroDateTimeBehavior=convertToNull" * remove old tests covered by data type tests + incr ver * Update airbyte-integrations/connectors/destination-mysql/src/main/java/io/airbyte/integrations/destination/mysql/MySQLDestination.java Co-authored-by: Sherif A. Nada <[email protected]> * Update docs/integrations/sources/mysql.md Co-authored-by: Sherif A. Nada <[email protected]> * add back comments to the data type mapping * incr config version Co-authored-by: Oleksandr Sheheda <[email protected]> Co-authored-by: Sherif A. Nada <[email protected]>
I'm still getting this error for invalid TIME values: Connector: MySQL 2.0.13 Can someone please check or explain a workaround? |
Found by comprehensive tests #3562
Requires #5704
Expected Behavior
A connector should finish its work no matter what data source contains.
In addition, such cases should be covered by comprehensive tests after the fix.
Current Behavior
2021-00-00
or even0000-00-00
, the connector will fail with an error "Zero date value prohibited". Relevant for typesdate
andDATETIME
Steps to Reproduce
Short way:
MySqlSourceComprehensiveTest.java
and uncomment test values at lines:208
,218
,236
Long way:
2000-00-00
) into DATE and DATETIME columns and-838:59:59.000000
into TIME column.Severity of the bug for you
High
Airbyte Version
0.24.7-alpha
Connector Version
0.3.4
The text was updated successfully, but these errors were encountered: