-
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
MySQL connector has problems loading Datetime columns with Zero Date values #2601
Comments
Thanks for the feedback! We also have this issue open: #1006 So I am pretty sure this is not coming from the BigQuery destination/normalization and the source is not handling the date type column well in this case. A temporary solution for you could be to somehow make sure the source column data type is not date but string maybe? can you build a view that changes the datatypes of that column for the moment maybe? and use that in the replication. |
Ok. Although we think the temporary solution you propose is a good (provisional) idea, we cannot change anything from the source as we don't have permissions to modify it (we only have read access). So, for now, we will wait until that issue is closed. Is it planned to work on the #1006 issue in the near future? |
|
2 and 3 would be great! |
Actually, your issue here is not about NULL values but that Zero date value are prohibited. One solution to the option 3 we discussed earlier is described here: Which would be possible with the PR #2611 |
Ok, you're right. Thanks a lot for the quick solution and for helping us understand the real issue! |
Expected Behavior
Load a table from MySQL Database that has datetime columns with NULL values, into BigQuery.
Current Behavior
Job crashes raising "java.sql.SQLException: Zero date value prohibited" exception.
Logs
2021-03-24 08:22:52 �[32mINFO�[m i.a.i.s.j.JdbcStateManager(createCursorInfoForStream):126 - {} - No cursor field set in catalog but not present in state. Stream: defaultdb.people_users, New Cursor Field: modified_at. Resetting cursor value
2021-03-24 08:22:54 INFO (/tmp/workspace/438/0) LineGobbler(voidCall):69 - 2021-03-24 08:22:54 �[32mINFO�[m i.a.i.d.b.BigQueryDestination(createTable):264 - {} - Table created successfully
2021-03-24 08:23:11 INFO (/tmp/workspace/438/0) DefaultAirbyteStreamFactory(lambda$create$0):73 - 2021-03-24 08:23:11 �[32mINFO�[m i.a.i.s.j.AbstractJdbcSource(queryTableFullRefresh):389 - {} - Queueing query for table: people_users
2021-03-24 08:23:12 INFO (/tmp/workspace/438/0) DefaultAirbyteStreamFactory(lambda$create$0):73 - 2021-03-24 08:23:12 �[32mINFO�[m i.a.i.s.j.AbstractJdbcSource(lambda$queryTableFullRefresh$22):394 - {} - Preparing query for table: people_users
2021-03-24 08:23:12 INFO (/tmp/workspace/438/0) DefaultAirbyteStreamFactory(lambda$create$0):73 - 2021-03-24 08:23:12 �[32mINFO�[m i.a.i.s.j.AbstractJdbcSource(lambda$queryTableFullRefresh$22):399 - {} - Executing query for table: people_users
2021-03-24 08:23:15 INFO (/tmp/workspace/438/0) DefaultAirbyteStreamFactory(lambda$create$0):73 - 2021-03-24 08:23:15 �[32mINFO�[m i.a.i.s.j.AbstractJdbcSource(lambda$read$3):181 - {} - Closing database connection pool.
2021-03-24 08:23:15 INFO (/tmp/workspace/438/0) DefaultAirbyteStreamFactory(lambda$create$0):73 - 2021-03-24 08:23:15 �[32mINFO�[m i.a.i.s.j.AbstractJdbcSource(lambda$read$3):183 - {} - Closed database connection pool.
2021-03-24 08:23:15 ERROR (/tmp/workspace/438/0) LineGobbler(voidCall):69 - Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: Zero date value prohibited
Steps to Reproduce
I don't know how to solve this, but maybe the problem is in the Data Catalog (?)
Severity of the bug for you
High
Airbyte Version
0.17.2-alpha
Connector Version (if applicable)
0.2.1
The text was updated successfully, but these errors were encountered: