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

[HUDI-5296] Allow disable schema on read after enabling #7333

Closed

Conversation

nsivabalan
Copy link
Contributor

@nsivabalan nsivabalan commented Nov 29, 2022

Change Logs

If someone has enabled schema on read by mistake and never really renamed or dropped a column. it should be feasible to disable schema on read. This patch fixes that. essentially both on read and write path, if "hoodie.schema.on.read.enable" config is not set, it will fallback to regular code path. It might fail or users might miss data if any they have performed any irrevocable changes like renames. But for rest, this should work.

Impact

Users can now disable schema on read feature if need be.

Testing:
Manually tested that we could able to read a table which had schema on read enabled. after disabling, upserts succeed.

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

low.

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

@nsivabalan nsivabalan changed the title [HUDI-5296] Test schema on read reconcile schema [HUDI-5296] Allow disable schema on read after enabling Nov 29, 2022
@nsivabalan nsivabalan force-pushed the testSchemaOnReadReconcileSchema branch from 6297eeb to c7dae19 Compare December 1, 2022 22:48
@nsivabalan
Copy link
Contributor Author

@alexeykudinkin @xiarixiaoyao : addressed feedback

@nsivabalan nsivabalan added the release-0.12.2 Patches targetted for 0.12.2 label Dec 6, 2022
@hudi-bot
Copy link

hudi-bot commented Dec 9, 2022

CI report:

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

@nsivabalan
Copy link
Contributor Author

Closing in favor of #7421

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority:blocker release-0.12.2 Patches targetted for 0.12.2
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants