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

[FLINK-35743][cdc-runtime] Fix the time zone configuration for temporal functions is not effective #3449

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aiwenmo
Copy link
Contributor

@aiwenmo aiwenmo commented Jul 2, 2024

This closes FLINK-35743.

@aiwenmo
Copy link
Contributor Author

aiwenmo commented Jul 2, 2024

@yuxiqian PTAL

Copy link
Contributor

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for @aiwenmo's quick fix! Just left some minor comments about test cases.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could still reproduce testTimestampDiffTransform failure when testing time was set to June 1st 04:00. Seems month and year diff will not be 0 when 8 hours gap crossed month / year boundaries, where the output would be -28800, -480, -8, 0, [0 or -1], [0 or -1].

TIMESTAMPDIFF_TABLEID,
recordDataGenerator.generate(
new Object[] {
new BinaryStringData("2"), -28800, -480, -8, 0, 0, 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto.

yuxiqian

This comment was marked as duplicate.

Copy link
Contributor

@yuxiqian yuxiqian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Pulled, tested locally and dateFormat works as expected. cc @ruanhang1993

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

Successfully merging this pull request may close these issues.

None yet

2 participants