Skip to content
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

java.lang.RuntimeException: java.time.format.DateTimeParseException: Text '0' could not be parsed at index 0 #15840

Closed
mkhokh-33 opened this issue Aug 22, 2022 · 9 comments
Assignees

Comments

@mkhokh-33
Copy link
Contributor

mkhokh-33 commented Aug 22, 2022

created issue from @danieldiamond comment ralated to RP - #15504
A couple of people running into issues now
java.lang.RuntimeException: java.lang.RuntimeException: java.time.format.DateTimeParseException: Text '0' could not be parsed at index 0

e.g.

@mkhokh-33 mkhokh-33 self-assigned this Aug 22, 2022
@mkhokh-33 mkhokh-33 changed the title java.lang.RuntimeException: java.lang.RuntimeException: java.time.format.DateTimeParseException: Text '0' could not be parsed at index 0 java.lang.RuntimeException: java.time.format.DateTimeParseException: Text '0' could not be parsed at index 0 Aug 22, 2022
@subodh1810
Copy link
Contributor

This seems relevant

The thing is it happens only in incremental mode (I don’t get the issue in full refresh mode).
One column has a default value set as CURRENT_TIMESTAMP(0) and this is slightly different from other tables that have a default value set as CURRENT_TIMESTAMP
Could it be the root cause ?

@grishick
Copy link
Contributor

@mkhokh-33 This is likely to cause a P0 outage, so please take this into implementation ASAP prioritizing above the other issue that you have in review currently.

@ryankfu
Copy link
Contributor

ryankfu commented Aug 22, 2022

@mkhokh-33 it seems the likely culprit is actually related to this PR: https://github.com/airbytehq/airbyte/pull/15504/files since this was not added to the change log but it touched MySQL. There may be another PR that touched Postgres but this is where the team seems to think the issue arose

@subodh1810
Copy link
Contributor

@danieldiamond
I am not able to reproduce this for mysql or postgres. I tried to sync data from a mysql table with the following structure in CDC mode and it worked perfectly fine

create table test(id int primary key, updated_at timestamp(0) not null default CURRENT_TIMESTAMP(0), updated_at_2 timestamp(1) not null default CURRENT_TIMESTAMP(1), updated_at_3 timestamp(2) not null default CURRENT_TIMESTAMP(2), updated_at_4 timestamp(3) not null default CURRENT_TIMESTAMP(3), updated_at_5 timestamp(4) not null default CURRENT_TIMESTAMP(4), updated_at_6 timestamp(5) not null default CURRENT_TIMESTAMP(5));

can you share the schema of the table for which you faced the error and logs from the sync

@mackro-rocky
Copy link

We're seeing the same issue on postgres with 1.0.2 connector.

Logs attached
logs-56.txt

@subodh1810
Copy link
Contributor

hey @mkhokh-33 FYI, am already working on fixing this.

@subodh1810
Copy link
Contributor

Postgres error should be fixed by this PR #15877

@subodh1810
Copy link
Contributor

MySQL error should be fixed by this PR #15917

@subodh1810
Copy link
Contributor

This has been fixed for both postgres (in version 1.0.4) and MySQL (in version 0.6.5), closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants