-
Notifications
You must be signed in to change notification settings - Fork 2.4k
[HUDI-9258] Disable partial update when global index is used #13086
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
Conversation
8372a11
to
eced87d
Compare
eced87d
to
449340f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left one comment. Let's also file a followup doc ticket to update the limitation here. - https://hudi.apache.org/docs/sql_dml/#merge-into-partial-update. Could you please fix checkstyle and CI failures?
// Check if goal index is enabled for specific indexes. | ||
def isGlobalIndexEnabled(indexType: String, parameters: Map[String, String]): Boolean = { | ||
Seq( | ||
HoodieIndex.IndexType.GLOBAL_SIMPLE -> HoodieIndexConfig.SIMPLE_INDEX_UPDATE_PARTITION_PATH_ENABLE, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I get the intention that when update partition path is false, only then disable merge into partial update. But, would it be safer to take more conservative approach right now i.e. disable only when global index is enabled irrespective of partition path is true or not? Anyway, update partition path is true by default for global index right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, for Global_simple, the update partition path is enabled by default.
76b7513
to
3328bc9
Compare
3328bc9
to
d8dd679
Compare
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]> (cherry picked from commit 2e5ccb4)
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]> (cherry picked from commit 2e5ccb4)
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]> (cherry picked from commit 2e5ccb4)
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]> (cherry picked from commit 2e5ccb4)
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]> (cherry picked from commit 2e5ccb4)
…13086) * Disable global index for merge into query * Fix import styles * Add flag and test * Fix schema usage * Fix compilation * remove custom merge mode validation --------- Co-authored-by: Lokesh Jain <[email protected]> Co-authored-by: Sagar Sumit <[email protected]>
Change Logs
Currently partial update does not function correctly when global index is used.
Since we are going to use FG reader to replace these adhoc merge logic soon, we disable partial update when global index is enabled.
Impact
No partial update when global index is used.
Risk level (write none, low medium or high below)
None, since this is the current behavior; we just enforce it.
Documentation Update
Describe any necessary documentation update if there is any new feature, config, or user-facing change. If not, put "none".
ticket number here and follow the instruction to make
changes to the website.
Contributor's checklist