You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g.
When the actual partition structure is dt=2021-12-09/hh=1, but mistakenly config dt=2021-12-09 in hoodie.datasource.write.partitions.to.delete, then, the partition dt=2021-12-09 will be written to the metadata of replacecommit.
If we configure HMS partition synchronization at the same time, an error will always be reported:
Impact
Filter wrong partitions when using hoodie.datasource.write.partitions.to.delete
When the actual partition structure is dt=2021-12-09/hh=1, but mistakenly config dt=2021-12-09 in hoodie.datasource.write.partitions.to.delete, then, the partition dt=2021-12-09 will be written to the metadata of replacecommit.
Should we just supplement the secondary partition paths so that the whole dt=2021-12-09 partiton can be deleted, this might be the original intention of the user.
Should we just supplement the secondary partition paths so that the whole dt=2021-12-09 partiton can be deleted, this might be the original intention of the user.
yes, can just config hoodie.datasource.write.partitions.to.delete = dt=2021-12-09/*
Should we just supplement the secondary partition paths so that the whole dt=2021-12-09 partiton can be deleted, this might be the original intention of the user.
yes, can just config hoodie.datasource.write.partitions.to.delete = dt=2021-12-09/*
I mean when user decpare the partition path as dt=2021-12-09, we handle it the same way as dt=2021-12-09/*.
I mean when user decpare the partition path as dt=2021-12-09, we handle it the same way as dt=2021-12-09/*.
This looks good, but for example, such as third-level partitions, dt, hh, mm, if user configures dt=1/mm=1 do we need to help the user configure as dt=1/hh=*/mm=1?
I think simple is OK, user can either specify * or just full path.
This looks good, but for example, such as third-level partitions, dt, hh, mm, if user configures dt=1/mm=1 do we need to help the user configure as dt=1/hh=*/mm=1?
@danny0405 When hive_style_partitioning is false, such as 2016/03/15, it is difficult to automatically add * to identify them.
Besides I think that for this type of configuration that requires manual setting partitions, the full path and the * are sufficient, because there is no engine to parsing them, and this is just how it was used currently.
If we want to use other more flexible solutions, can use SQL instead of manual configuration.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Logs
e.g.
When the actual partition structure is
dt=2021-12-09/hh=1, but mistakenly configdt=2021-12-09inhoodie.datasource.write.partitions.to.delete, then, the partitiondt=2021-12-09will be written to the metadata of replacecommit.If we configure HMS partition synchronization at the same time, an error will always be reported:
Impact
Filter wrong partitions when using
hoodie.datasource.write.partitions.to.deleteRisk level (write none, low medium or high below)
low
Documentation Update
None
Contributor's checklist