Repository navigation
Fix onelake insert test - #104803
Fix onelake insert test#104803scanhex12 wants to merge 2 commits into
Conversation
|
Workflow [PR], commit [81dfd07] Summary: ❌
AI ReviewSummaryThis PR updates OneLake handling to un-xfail insert tests and adjust Iceberg/Azure metadata behavior, but one live correctness issue remains in the Findings
Final Verdict
|
|
|
||
| mutation_commands.emplace_back(mut_command); | ||
|
|
||
| table->updateExternalDynamicMetadataIfExists(getContext()); |
There was a problem hiding this comment.
metadata_snapshot is read before this refresh (getInMemoryMetadataPtr near line 90) and later reused in MutationsInterpreter(...).validate().
For DataLake tables, this means validation still uses stale schema/table-state even though execution (StorageObjectStorage::mutate) runs after another metadata refresh. With validate_mutation_query = 1 this can reject valid DELETE statements right after external schema/snapshot changes.
Please reload metadata_snapshot after updateExternalDynamicMetadataIfExists (or move the original snapshot read below this call) so validation and execution use the same metadata snapshot.
LLVM Coverage Report
Changed lines: 67.57% (25/37) | lost baseline coverage: 1 line(s) · Uncovered code |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fix onelake insert test