hive
hive copied to clipboard
HIVE-27850: Iceberg: Addendum 2: Set runAs user in CompactionInfo.
What changes were proposed in this pull request?
Setting CompactionInfo.runAs in Iceberg Compaction Service.
Why are the changes needed?
Without runAs set, execution fails during compilation phase on access authorization in internal environments. Besides that, if runAs is not set and Iceberg compaction throws any exception, without this fix there will be also another exception thrown in the catch block here: https://github.com/apache/hive/blob/a348e5d86adc611e4f72d386815a21a96b667ab4/ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java#L258
Does this PR introduce any user-facing change?
No
Is the change a dependency upgrade?
No
How was this patch tested?
Testing with dev jars on local dev env and precommit tests.
Quality Gate passed
Issues
0 New issues
Measures
0 Security Hotspots
No data about Coverage
No data about Duplication