nsivabalan opened a new pull request, #6248:
URL: https://github.com/apache/hudi/pull/6248
## What is the purpose of the pull request
From 0.12, we are standardizing the default partition value for hudi as
"__HIVE_DEFAULT_PARTITION__". Previously, hudi was using "default" as the
default value (i.e. if partition column is null, this fallback value will be
used). The fix was put up so that query engines will not run into any class
cast exception if original partition path fields are non string types. But
after this fix, we might need to migrate older hudi tables. ie. if "default"
partition exists, we have to rewrite it to "__HIVE_DEFAULT_PARTITION__". This
patch is adding an upgrade step, where we detect such hudi tables and fail the
upgrade. And added instructions on what needs to be done before upgrading.
## Brief change log
- Added FourToFiveUpgradeHandler to detect hudi tables with "default"
partition and throwing exception.
## Verify this pull request
This change added tests and can be verified as follows:
- TestUpgradeDowngrade#testUpgradeFourtoFive
- TestUpgradeDowngrade#testUpgradeFourtoFiveWithDefaultPartition
## Committer checklist
- [ ] Has a corresponding JIRA in PR title & commit
- [ ] Commit message is descriptive of the change
- [ ] CI is green
- [ ] Necessary doc changes done or have another open PR
- [ ] For large changes, please consider breaking it into sub-tasks under
an umbrella JIRA.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]