Skip to content

[cdc-common] Introduce PIPELINE_LOCAL_TIME_ZONE which help handle time zone well#2797

Merged
leonardBang merged 3 commits into
apache:masterfrom
leonardBang:sessiont_timezone_config
Dec 4, 2023
Merged

[cdc-common] Introduce PIPELINE_LOCAL_TIME_ZONE which help handle time zone well#2797
leonardBang merged 3 commits into
apache:masterfrom
leonardBang:sessiont_timezone_config

Conversation

@leonardBang

@leonardBang leonardBang commented Dec 2, 2023

Copy link
Copy Markdown
Contributor

[cdc-common] Introduce PIPELINE_LOCAL_TIME_ZONE which help handle time zone well

@ruanhang1993 ruanhang1993 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Where is getLocalTimeZone invoked?

@leonardBang

Copy link
Copy Markdown
Contributor Author

Where is getLocalTimeZone invoked?

When we deal TIMESTAMP_LTZ type in Sink

@leonardBang

Copy link
Copy Markdown
Contributor Author

@lvyanquan @PatrickRen @Jiabao-Sun Would you like to help review this PR?

@leonardBang
leonardBang force-pushed the sessiont_timezone_config branch from 50a4c99 to 942a8dc Compare December 3, 2023 04:21
@leonardBang
leonardBang force-pushed the sessiont_timezone_config branch from 942a8dc to be2deae Compare December 3, 2023 14:59
@leonardBang

Copy link
Copy Markdown
Contributor Author

Thanks @PatrickRen and @lvyanquan for the insight, I've simplify the PR, appreciate if you can take a look

@lvyanquan lvyanquan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Left one comment.

context.getConfiguration().get(ValuesDataSinkOptions.PRINT_ENABLED));
context.getPipelineConfiguration()
.get(ValuesDataSinkOptions.MATERIALIZED_IN_MEMORY),
context.getPipelineConfiguration().get(ValuesDataSinkOptions.PRINT_ENABLED));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

context.getFactoryConfiguration().

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

And please fix the code style check failure. Thanks.

adress comments

@lvyanquan lvyanquan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.

@leonardBang leonardBang changed the title [cdc-common] Introduce PipelineConfig and PIPELINE_LOCAL_TIME_ZONE which help handle time zone well [cdc-common] Introduce PIPELINE_LOCAL_TIME_ZONE which help handle time zone well Dec 4, 2023
@leonardBang
leonardBang merged commit 95921d5 into apache:master Dec 4, 2023
@leonardBang

Copy link
Copy Markdown
Contributor Author

The failed tests is note related to this PR, merging...

@leonardBang leonardBang self-assigned this Dec 4, 2023
ChaomingZhangCN pushed a commit to ChaomingZhangCN/flink-cdc that referenced this pull request Jan 13, 2025
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.

4 participants