HIVE-29345: Support Alter table command for write ordering.#6256
Merged
deniskuzZ merged 1 commit intoapache:masterfrom Jan 21, 2026
Merged
HIVE-29345: Support Alter table command for write ordering.#6256deniskuzZ merged 1 commit intoapache:masterfrom
deniskuzZ merged 1 commit intoapache:masterfrom
Conversation
22a148b to
9d5ffb3
Compare
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
deniskuzZ
reviewed
Jan 5, 2026
9d5ffb3 to
f35e6f3
Compare
f35e6f3 to
c020934
Compare
Contributor
Author
|
I have addressed all the comments and refactored the code as well. |
deniskuzZ
reviewed
Jan 14, 2026
c020934 to
1acba18
Compare
1acba18 to
a7450f2
Compare
SYNTAX: ALTER TABLE table_name SET WRITE ORDERED BY column_name sort_direction NULLS FIRST/LAST, ... EXAMPLE: ALTER TABLE table_order SET WRITE ORDERED BY id desc nulls first, name asc nulls last;
a7450f2 to
d6f7881
Compare
|
nareshpr
pushed a commit
to nareshpr/hive-1
that referenced
this pull request
Feb 28, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



What changes were proposed in this pull request?
Implemented Natural ordering(write ordered by) ALTER TABLE DDL support for Iceberg tables.
Why are the changes needed?
Existing tables can be converted to natural ordered tables using ALTER command. Note that only the data inserted after alter query are ordered, not existing data.
Does this PR introduce any user-facing change?
yes, supported new syntax
SYNTAX:
ALTER TABLE table_name SET WRITE ORDERED BY column_name sort_direction NULLS FIRST/LAST, ...
EXAMPLE:
ALTER TABLE table_order SET WRITE ORDERED BY id desc nulls first, name asc nulls last;
How was this patch tested?
qtest