-
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
Databases DateTime, Date, Time data type bug (MySQL, Postgres, etc.) #14628
Comments
This problem is also existing in Postgres CDC ,
take a look in CdcPostgresSourceDatatypeTest |
|
Hey team! Please add your planning poker estimate with ZenHub @edgao @ryankfu @subodh1810 |
Related issue that should be fixed when this is fixed: #14590 |
the converter is still necessary after the 1.9.2 upgrade; debezium converts |
source-postgres is completed in #15259; there's still work remaining for other DB sources. |
@grishick how do I remove this issue from the postgres epic? |
done (clicked on the cogwheel next to Epics in the side bar on the right and unchecked the checkbox next to postgres epic) |
@subodh1810 |
for reference: I was able to repro the issue with source-snowflake; see https://github.com/airbytehq/oncall/issues/383#issuecomment-1204588122 - it looks like timestamp and date columns are both incorrectly treated as timestamptz |
@edgao @subodh1810 should this be renamed to MySQL scope only now that Postgres is fixed separately? |
I think the scope of this ticket is any db/dw source, so it covers everything except postgres (e.g. the snowflake thing I mentioned above) |
If the implementation will require connector-specific change, please file separate issues for each connector, so that we can prioritize accordingly. |
Am closing this cause we have fixed MySQL and Postgres. Also going to re-estimate it. This took longer than expected. WE merged 4 big PRs to fix the two sources. Making sure CDC and non-CDC output was the same was more challenging than expected. Will file separate issues for other db sources |
Ref : https://airbytehq-team.slack.com/archives/C03C4AVJWG4/p1657271466983419
I was going through some of the data type tests in MySQL and I see that we convert all the time related data type values (TIMESTAMP, DATE TIME, DATE) into TIMESTAMP WITH TIEMZONE values. For instance
^ DATETIME column value 2005-10-10 23:22:21 is being converted into 2005-10-10T23:22:21.000000Z , similarly
^ DATE value 2021-01-01 is being converted into 2021-01-01T00:00:00Z .
The tests can be found in the class AbstractMySqlSourceDatatypeTest
The text was updated successfully, but these errors were encountered: