Repository navigation
fix(databases): Delta refuses an extension type nested in a list, map or dictionary (ITL-1372) #619
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
eywalker
merged 11 commits into
main
from
eywalker/itl-1372-delta-does-not-keep-an-extension-type
Nov 29, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0612479
fix(databases): refuse unsupported nested Delta extension types
eywalker 852de4a
Merge remote-tracking branch 'origin/main' into eywalker/itl-1372-del…
eywalker 6d57598
Merge remote-tracking branch 'origin/main' into eywalker/itl-1372-del…
eywalker 301d94b
Merge remote-tracking branch 'origin/main' into eywalker/itl-1372-del…
eywalker 2430f1e
fix(databases): refuse lossy nested extension layouts in Delta
eywalker a4b0b65
Merge remote-tracking branch 'origin/main' into eywalker/itl-1372-del…
eywalker 1cfd0d8
fix(databases): require whole-column logical types in Delta
eywalker d7e258e
fix(databases): inspect every Delta chunk for logical annotations
eywalker be629f4
chore: merge main into the Delta logical type branch
eywalker 8c8ebf4
chore: merge main into the Delta logical type branch
eywalker 554fefa
chore: merge main after the stream provenance fix
eywalker File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| ### Breaking changes and migration | ||
|
|
||
| - Delta stores a logical (Arrow extension) type only as a whole top-level | ||
| column. It refuses nested extensions and fields carrying Arrow extension | ||
| metadata within another type, including within a top-level extension's | ||
| own storage. The refusal applies whether or not the logical type is | ||
| registered and also covers some previously accepted struct layouts. | ||
| Use the corresponding Orcapod container or class type to keep the logical | ||
| type: it stores its children as Arrow storage inside one top-level logical | ||
| column. Alternatively, use plain Arrow storage without extension annotations | ||
| or keep the raw Arrow column in an `InMemoryArrowDatabase`. | ||
|
|
||
| ### Fixed | ||
|
|
||
| - Delta names affected columns and their nested paths before buffering rows. | ||
| This prevents nested logical type loss, unreadable tables, and identical | ||
| appends that fail after an apparently successful first write. |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| ## `src/orcapod/databases/` — appending another logical type | ||
|
|
||
| ### LI2 — Delta lost logical types or refused identical appends for nested extension columns | ||
| **Status:** resolved | ||
| **Severity:** critical | ||
| **Issue:** ITL-1372 | ||
|
|
||
| Delta could lose a nested Arrow extension's identifier or store a field as a | ||
| different type. Some nested forms accepted a first write and then refused an | ||
| identical append. Others committed a table a fresh handle could not read. | ||
| The problems also occurred inside the storage of an extension type. | ||
|
|
||
| **Fix:** Delta accepts a logical type only as a whole top-level column. It | ||
| checks the schema and nested annotations on individual chunks before buffering. | ||
| The check walks extension storage and refuses both actual and annotated nested | ||
| types regardless of registration, with the column and nested path. Orcapod's | ||
| logical containers and user classes keep child values in plain Arrow storage | ||
| within one top-level extension, so they do not need nested Arrow extensions. |
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.