Skip to content

[AURON #2246] Reuse Hudi table properties when detecting native scan support#2247

Draft
weimingdiit wants to merge 2 commits intoapache:masterfrom
weimingdiit:feat/hudi-reues-properties
Draft

[AURON #2246] Reuse Hudi table properties when detecting native scan support#2247
weimingdiit wants to merge 2 commits intoapache:masterfrom
weimingdiit:feat/hudi-reues-properties

Conversation

@weimingdiit
Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Closes #2246

Rationale for this change

Hudi native scan support detection may need to read .hoodie/hoodie.properties to resolve table type and base file format. Before this change, these two pieces of metadata were loaded through separate code paths, which duplicated the file loading logic.

What changes are included in this PR?

  • Add a shared helper to load Hudi table properties from .hoodie/hoodie.properties.
  • Reuse the loaded properties when resolving Hudi table type and base file format.
  • Use Using.resource to manage the metadata input stream.
  • Reuse the resolved supported file format in HudiConvertProvider.

Are there any user-facing changes?

No. This is an internal refactor for Hudi native scan support detection.

How was this patch tested?

CI. Existing Hudi scan support tests should cover the behavior.

Signed-off-by: weimingdiit <weimingdiit@gmail.com>
… scan support

Signed-off-by: weimingdiit <weimingdiit@gmail.com>
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

Successfully merging this pull request may close these issues.

Reuse Hudi table properties when detecting native scan support

1 participant