Skip to content

[HUDI-8106] Use the new filegroup reader for the metadata table#11802

Closed
jonvex wants to merge 3 commits intoapache:masterfrom
jonvex:enable_fg_reader_mdt
Closed

[HUDI-8106] Use the new filegroup reader for the metadata table#11802
jonvex wants to merge 3 commits intoapache:masterfrom
jonvex:enable_fg_reader_mdt

Conversation

@jonvex
Copy link
Contributor

@jonvex jonvex commented Aug 20, 2024

Change Logs

use new fg reader for mdt

Impact

transition to fg reader for more use cases

Risk level (write none, low medium or high below)

medium
need to test more

Documentation Update

N/A

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

@github-actions github-actions bot added the size:XS PR with lines of changes in <= 10 label Aug 20, 2024
@github-actions github-actions bot added size:S PR with lines of changes in (10, 100] and removed size:XS PR with lines of changes in <= 10 labels Aug 20, 2024
} else {
Schema.createUnion(schema.getTypes.asScala.map(innerSchema => getAvroSchemaWithDefaults(innerSchema, dataType)).asJava)
}, containsNullSchema)
dataType match {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change Spark specific?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

kinda. It's because in the mdt we have a union of a bunch of different types, but otherwise, we expect union to only be 2 types with one of them being null. This is spark specific because this code is for converting spark schemas, but we will probably have an issue like this if other engines use a different schema than avro

@hudi-bot
Copy link
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S PR with lines of changes in (10, 100]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants