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] When writing a partitioned table for Paimon using Flink SQL and storing the table on HDFS, the partition directory name on HDFS is displayed abnormally. For example, it shows as SCAN_DATE=19415 instead of the correct format of SCAN_DATE=2023-03-01, where SCAN_DATE is of type date. #773

Open
2 tasks done
yuanoOo opened this issue Mar 30, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@yuanoOo
Copy link

yuanoOo commented Mar 30, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Paimon version

paimon-flink-1.15-0.4-20230330.002117-12.jar

Compute Engine

flink1.15.3

Minimal reproduce step

When writing a partitioned table for Paimon using Flink SQL and storing the table on HDFS, the partition directory name on HDFS is displayed abnormally. For example, it shows as SCAN_DATE=19415 instead of the correct format of SCAN_DATE=2023-03-01, where SCAN_DATE is of type date.

What doesn't meet your expectations?

When writing a partitioned table for Paimon using Flink SQL and storing the table on HDFS, the partition directory name on HDFS is displayed abnormally. For example, it shows as SCAN_DATE=19415 instead of the correct format of SCAN_DATE=2023-03-01, where SCAN_DATE is of type date.

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@yuanoOo yuanoOo added the bug Something isn't working label Mar 30, 2023
@JingsongLi
Copy link
Contributor

Direct fixes may have compatibility issues, we should be careful.

@yuanoOo
Copy link
Author

yuanoOo commented Apr 9, 2023

Direct fixes may have compatibility issues, we should be careful.

I’m trying to fix this bug, can you assign it to me?

My idea is to format the DATE type in the org.apache.paimon.utils.RowDataPartitionComputer#generatePartValues method. For example, converting the int value 19996 of the DATE type into the correct date string 2024-09-30.

@dailai
Copy link

dailai commented Mar 19, 2024

I think this issue need to fix. For example, we develop a paimon connector of seatunnel which use java api of paimon also has the same problem.The types in date,time,timestamp all have the same problem.

@dailai
Copy link

dailai commented May 14, 2024

@JingsongLi Hi, how about this problem?

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

No branches or pull requests

3 participants