You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix antalya-26.6 build: adapt Iceberg TRUNCATE to 26.6 writer API (#2125)
The #1655 backport was written against the antalya-26.3 Iceberg writer API
and did not compile on antalya-26.6, breaking Build (arm_tidy) and Fast test:
* Constant.h re-added the `deleted_records` / `deleted_data_files` field
aliases that antalya-26.6 already defines, causing macro redefinition
errors. Drop the duplicate definitions.
* IcebergMetadata::truncate() used the 26.3 FileNamesGenerator /
MetadataGenerator / generateManifestList signatures. Rewrite it to follow
the antalya-26.6 writer (IcebergStorageSink in IcebergWrites.cpp):
- 4-arg FileNamesGenerator over resolver.getTableLocation();
- generateMetadataPathWithInfo() instead of the removed generateMetadataName();
- generateNextMetadata() now returns {snapshot, manifest_list_path}; resolve
storage paths via IcebergPathResolver::resolve() and the catalog path via
resolveForCatalog();
- generateManifestList(resolver, ...) with empty entry/size vectors.
Metadata-only truncate semantics are unchanged. Not built locally; validated
by CI on this PR.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments