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

How to infer partition fields from hudi source table and use them datasetConfig.yaml #411

Open
rahul-ghiware opened this issue Apr 9, 2024 · 1 comment

Comments

@rahul-ghiware
Copy link

Hi Team,

We're looking to infer partition fields (if any) associated with a given Hudi source table and incorporate them into the datasetConfig.yaml file (as a partitionSpec) before running the XTable utility jar for data format conversion.

Could someone please assist me with this?

@the-other-tim-brown
Copy link
Contributor

Do you have access to the writer configs for these tables? You can infer based on the options used. https://hudi.apache.org/docs/key_generation

TimestampBasedKeyGenerator and CustomKeyGenerator are the ones that would require the most effort since you need to also extract the output format for the partition when it is time based.

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

2 participants