Repository navigation
fix(duckdb): ARRAY reads and ATTACH rollback - #149
Merged
Merged
Conversation
Issue 144: use ArrayVector::GetChildMutable for ARRAY vectors instead of ListVector::GetChildMutable, which read the wrong buffer and could segfault on aggregation. Parse trailing [n]/[] dimensions with rfind before STRUCT/UNION/MAP so INTEGER[2][2] and STRUCT(..)[2] resolve to nested ARRAY types. fix(attach): create shadow tables in the ATTACH transaction Issue 145: pass Transaction::Get(*context_) to the main catalog for shadow node/rel entries (duckdb, sqlite, pg_client, adbc) and add Catalog::addTableEntry(Transaction*, ...) with skipLoggingToWAL. A failed ATTACH now rolls back its shadows instead of leaking them, and the name-clash error surfaces as already-exists rather than write-write conflict.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes: #144
Fixes: #145
144: use ArrayVector::GetChildMutable for ARRAY vectors instead of ListVector::GetChildMutable, which read the wrong buffer and could segfault on aggregation. Parse trailing [n]/[] dimensions with rfind before STRUCT/UNION/MAP so INTEGER[2][2] and STRUCT(..)[2] resolve to nested ARRAY types. Same transactional shadow fix applied to sqlite, pg_client and adbc catalogs.
145: pass the ATTACH transaction to the main catalog for shadow node/rel entries and add Catalog::addTableEntry(Transaction*, ...) with skipLoggingToWAL (requires ladybug companion PR 1666). A failed ATTACH now rolls back its shadows instead of leaking them, and the name-clash error surfaces as already-exists rather than write-write conflict.