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

[#1768] feat(hive): implement add partition for Hive catalog #1792

Merged
merged 2 commits into from
Jan 30, 2024

Conversation

mchades
Copy link
Contributor

@mchades mchades commented Jan 30, 2024

What changes were proposed in this pull request?

implement add partition for Hive catalog

Why are the changes needed?

Fix: #1768

Does this PR introduce any user-facing change?

no

How was this patch tested?

tests added

@mchades mchades changed the title [#1678] feat(hive): implement add partition for Hive catalog [#1768] feat(hive): implement add partition for Hive catalog Jan 30, 2024
@mchades mchades self-assigned this Jan 30, 2024
@mchades mchades marked this pull request as ready for review January 30, 2024 11:58
@mchades mchades requested a review from jerryshao January 30, 2024 11:58

List<String> transformFields =
Arrays.stream(table.partitioning())
.map(t -> ((Transforms.IdentityTransform) t).fieldName()[0])
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does here mean that hive doesn't support nested column for partitioning, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also is it better to use Set, since you need to check the "contains" below?

Copy link
Contributor Author

@mchades mchades Jan 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does here mean that hive doesn't support nested column for partitioning, right?

yep, see Hive source code

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also is it better to use Set, since you need to check the "contains" below?

fixed

@jerryshao jerryshao merged commit 50415c3 into apache:main Jan 30, 2024
5 checks passed
@mchades mchades deleted the add-par-3-1 branch November 22, 2024 03:39
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.

[Subtask] Support addPartition for Hive catalog
2 participants