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

[Bug] Convert timestamp_ltz field contents using local time zone #4030

Open
2 tasks done
rfyu opened this issue Aug 22, 2024 · 0 comments
Open
2 tasks done

[Bug] Convert timestamp_ltz field contents using local time zone #4030

rfyu opened this issue Aug 22, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rfyu
Copy link
Contributor

rfyu commented Aug 22, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

0.8

Compute Engine

flink

Minimal reproduce step

  1. Create a mysql table containing the timestamp type, and specify the time zone for mysql server to be UTC+8
  2. Use flink-cdc to import the data of the table into kafka
  3. Create a paimon table, which uses a timestamp_ltz type field to store the value of the timestamp type field in mysql
  4. If you query the paimon table in UTC+8, you will find that there are still 8 hours missing

What doesn't meet your expectations?

The content of the timestamp_ltz field retrieved from the Paimon table should be the same as in mysql

Anything else?

I think the root cause is that we use the utc time zone to read the data from kafka, but use the current time zone to write the data to paimon.

image
image

Are you willing to submit a PR?

  • I'm willing to submit a PR!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant