Repository navigation
Fix DataLakeCatalog table creation issues - #2792
Conversation
…x/antalya-26.8/issue-2500
CI triage for 69fa635Verdict: none of the 7 failing checks look caused by this PR. 5 also fail on other
Details1. This touches Iceberg, so I checked it carefully. The same 21 tests fail with the same count on #2773 (merged), #2794 and #2800. None of those touch DataLake code. The PR's 2. The fake GCS container never started because the binary inside it couldn't be executed, so every test in the module failed at the fixture. The PR doesn't touch CAS/GCS. Safe to re-run. If it repeats, the 3. 4. Stateless 5. Regression The disk config is rejected by the new 6. Regression Suggested next steps
Evidence: praktika |
|
@Selfeer could you pls also verify this one? |
|
On it |
Defects in #2792Medium: plain
|
| #2500 defect | Status at 69fa6353 |
|---|---|
1. CREATE TABLE ... AS from an S3 Tables table with no keys throws LOGICAL_ERROR |
Fixed. |
2. Table-level engine SETTINGS are lost after restart |
Fixed when ENGINE is given explicitly. Without ENGINE, SETTINGS are rejected, as before the PR. |
3. metadata-log misses the previous file or records the wrong one |
Partly fixed. Bin-pack OPTIMIZE TABLE is still wrong (see the Medium finding above). |
4. RENAME DATABASE ... ON CLUSTER bypasses the guard |
Not addressed. The PR does not claim this one. |
How each one was checked:
- A source from a
DataLakeCatalogwith no storage clause now reaches theDataLakeCatalogbranch ofsetEngine. If the target is not aDataLakeCatalog, the query fails withINCORRECT_QUERYinstead ofLOGICAL_ERROR. Keys are copied only when the source has them. validateCreateTableEnginerejects format settings, and storage settings whose value differs from the database value. It compares against the samegetTableStorageSettingsthattryGetTableImpluses when the table is reopened.TRUNCATE,OPTIMIZE ... MANIFEST, schemaALTERandEXPORT PARTITIONnow log the previous file, including on retries.executeDDLQueryOnCluster.cpp:70still checks!rename->database. The PR links Defects found for PR #2305 #2500 withRelated:, so merging it does not close the issue.
Scope and limits
- Reviewed: all 12 changed source files, and every caller of
generateNextMetadata,appendReplaceSnapshotandappendMetadataLog. - Not done: nothing was built or run. The steps to reproduce were worked out from the code.
- Confidence: high for the bin-pack finding, because the code path is direct. Running the steps above would confirm it.
|
@zvonand marking this as verified, I don't have the issue with the PR itself. But below audit finding - do you need me to create a ticket for the future followup? |
Fixes defects 1–3 from the audit of native
CREATE TABLE/DROP TABLEforDataLakeCatalog:CREATE TABLE ... ASfrom an S3 Tables catalog table without keys no longer throwsLOGICAL_ERROR. A table shown without storage is accepted as a source only when the target is aDataLakeCatalogdatabase.SETTINGSof a table created in aDataLakeCatalogare now rejected when they would be lost when the table is reopened. This covers format settings, and storage settings that differ from the database value.iceberg_format_versionand obsolete settings are still accepted.iceberg_*settings can now be set at the database level.metadata-lognow records the previous metadata file forTRUNCATE,OPTIMIZE ... MANIFEST, schemaALTERs andEXPORT PARTITION. Before, it recorded the new file itself or nothing.Related: #2500
Follow-up for: #2305
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Fix
CREATE TABLE ... ASfrom an S3 Tables table without keys, rejectDataLakeCatalogtable settings that are lost on reopen, allowiceberg_*settings at theDataLakeCatalogdatabase level, and record the previous metadata file in Icebergmetadata-logforTRUNCATE, manifest compaction,ALTERandEXPORT PARTITION.Documentation entry for user-facing changes
...
CI/CD Options
Exclude tests:
Regression jobs to run: