hive icon indicating copy to clipboard operation
hive copied to clipboard

HIVE-28342: Iceberg: Major QB Compaction support filter in compaction…

Open difin opened this issue 1 year ago • 1 comments

… request

What changes were proposed in this pull request?

Ability to specify where clause in compaction requests.

Why are the changes needed?

OPTIMIZE TABLE command's syntax needs to support WHERE clause. In Hive, OPTIMIZE TABLE command is implemented as an alias to ALTER TABLE COMPACT command. This PR adds where clause support for ALTER TABLE COMPACT command as a step towards adding support for where clause in OPTIMIZE TABLE command.

Does this PR introduce any user-facing change?

Yes, it extends ALTER TABLE ... COMPACT command.

Is the change a dependency upgrade?

No

How was this patch tested?

New query tests added.

difin avatar Aug 13 '24 18:08 difin