Skip to content

fix(partitions): reject redundant time transforms on the same source column - #1797

Open
badalprasadsingh wants to merge 2 commits into
apache:mainfrom
badalprasadsingh:fix/redundant-time-partition-fields
Open

fix(partitions): reject redundant time transforms on the same source column#1797
badalprasadsingh wants to merge 2 commits into
apache:mainfrom
badalprasadsingh:fix/redundant-time-partition-fields

Conversation

@badalprasadsingh

Copy link
Copy Markdown
Contributor

Description

Fixes #1796

Extends the function validatePartitionFields with partitionFieldsRedundant folding year, month, day and hour into one slot per source column.

Other families keep equality-only conflict and stay legal.

Testing

Added the necessary regression tests for it.

Signed-off-by: badalprasadsingh <badal@datazip.io>
Signed-off-by: badalprasadsingh <badal@datazip.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Partitions: Spec permits conflicing time transforms on the same source column

1 participant