Repository navigation
HIVE-30127: Iceberg: Upgrade iceberg version to 1.12.0 - #6856
Aggarwal-Raghav wants to merge 7 commits into
Conversation
bf70123 to
f9a59de
Compare
f9a59de to
255c9ab
Compare
9823ff3 to
4e10779
Compare
4e10779 to
81bed87
Compare
|
CC @deniskuzZ |
- Simplify HiveFileWriterFactory constructor by removing unused SortOrder and equality delete parameters, and ensure overwrite is set on Parquet writers. - Eliminate deprecated position delete field 2 access across IcebergAcidUtil, HiveIcebergCopyOnWriteRecordWriter, and HiveIcebergDeleteWriter by using rowDataTemplate directly. - Sync FileHelpers test utility with upstream Iceberg 1.12.0 reference implementation to align delete file format handling. - Move Parquet file format check inside VariantUtil shredding helper.
- Add UT TestHMSCatalogAdapterSnapshotMode - Sync GenericAppenderHelper with upstream Iceberg 1.12.0.
- Remove obsolete test testReadAndWriteFormatV2Partitioned_PosDelete_RowSupplied - Added testConsumeLegacyFormatV2Partitioned_PosDelete_RowSupplied to verify Hive can read/consume legacy V2 position deletes containing row data via FileHelpers.testOnlyPosDeleteFileWithRow - Simplify positionDelete helper in TestHiveIcebergCRUD to path and pos - Remove unused import in TestHMSCatalogAdapterSnapshotMode
32d18a2 to
f9720a9
Compare
I've replaced the older UT with a new UT |
| } | ||
|
|
||
| return writer.toDeleteFile(); | ||
| public static Pair<DeleteFile, CharSequenceSet> writeDeleteFile( |
There was a problem hiding this comment.
do we need this helper with hardcoded V2?
There was a problem hiding this comment.
Ok, so, FileHelpers and GenericAppenderHelper are sync fully from upstream #6856 (comment)
Attaching URL for your reference:
- GenericAppenderHelper: https://github.com/apache/iceberg/blob/apache-iceberg-1.12.0/data/src/test/java/org/apache/iceberg/data/GenericAppenderHelper.java
- https://github.com/apache/iceberg/blob/apache-iceberg-1.12.0/data/src/test/java/org/apache/iceberg/data/FileHelpers.java
I'll try to removed them if possible and replace them with iceberg-data test scope dependecy in a follow-up PR
There was a problem hiding this comment.
ok, meanwhile if some introduced methods are dead- can we kill them?
There was a problem hiding this comment.
I get your point but lets keep them.
I'm planning to raise other iceberg 1.12.0 PR's for new features introduced in iceberg. By that time, we feel that these methods can be deleted, will raise a follow-up PR.
There was a problem hiding this comment.
ok, i'll merge once we get a green build. Thanks again for addressing the review comments!
| File file = tmp.newFile(); | ||
| Assert.assertTrue(file.delete()); | ||
| File file = | ||
| temp.resolve("generic-appender-partition-test-" + UUID.randomUUID()).toFile(); |
There was a problem hiding this comment.
could you please move to constant "generic-appender-partition-test-"
| GenericFileWriterFactory.Builder builder = | ||
| new GenericFileWriterFactory.Builder(table).dataFileFormat(format); | ||
|
|
||
| // Push down ORC related settings to appender if there are any |
|
18a663f to
53d35b9
Compare
53d35b9 to
706d627
Compare



What changes were proposed in this pull request?
Commits made in upsteam iceberg b/w 1.11.0 and 1.12.0 in hive-metastore module:
Important points:
HMSCatalogAdapter.javato parse and pass the new SnapshotMode (ALL, REFS, NONE) intoCatalogHandlers.loadTablepositionDeleteRowSchemaafter refactorWhy are the changes needed?
Upgrade Iceberg to 1.12.0
Does this PR introduce any user-facing change?
No
How was this patch tested?
Will see CI outcome, Build compilation ran fine and ran few Iceberg q files and they passed.