Repository navigation
fix(streams)!: refuse dictionary-encoded columns, tags and data (ITL-1264, ITL-1277) #455
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 15 commits into
main
from
eywalker/itl-1264-a-dictionary-encoded-tag-column-cannot-go
Nov 20, 2026
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
024e3e0
fix(streams): refuse a dictionary-encoded tag column (ITL-1264)
de91210
Merge remote-tracking branch 'origin/main' into eywalker/itl-1264-a-d…
67bd3af
refactor(group_by): drop the dictionary-encoded key branches; their t…
916aaed
fix(arrow_utils): a dictionary inside a list-view tag is refused too …
6f72790
test(dictionary_tags): nested and list-view cases with two tags and t…
dd0a98d
Merge remote-tracking branch 'origin/main' into eywalker/itl-1264-a-d…
7754009
feat(streams)!: refuse dictionary-encoded data columns too (ITL-1264,…
153067d
test(dictionary_columns): type the column-name tuple so the set diffe…
713bbda
fix(dictionary_columns): a run-end-encoded column holding a dictionar…
7a683f7
fix(arrow_utils): targeted pyright ignores for run_end_encoded's narr…
364196e
test(dictionary_columns): every container closed, a tested nested dec…
a7c363b
Merge remote-tracking branch 'origin/main' into eywalker/itl-1264-a-d…
d0d5e17
fix(dictionary_columns): refuse before system columns are dropped; an…
b5459c6
Merge remote-tracking branch 'origin/main' into eywalker/itl-1264-a-d…
b11f247
fix(group_by): drop GroupBy's dictionary handling, unreachable now th…
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| ### Breaking changes and migration | ||
|
|
||
| - A dictionary-encoded column is refused (ITL-1264, ITL-1277). Dictionary-encoded columns are | ||
| not currently supported in Orcapod, tags and data alike. A column whose Arrow type is a | ||
| `dictionary`, or holds one inside it, raises `InputValidationError` when a source or a | ||
| stream is built. This covers a tag, a data-tag and a data column, and a dictionary inside a | ||
| list, a list view or a struct field. The message names each such column with its role, its | ||
| type and the type it decodes to, and says how to decode it. | ||
| - Before, a dictionary tag was accepted and failed later and far from the cause: in | ||
| `as_table(all_info=True)`, a filter, `Batch`, `GroupBy` or a join. Or it ran through a job. | ||
| A dictionary data column was accepted with the Python type `Any`, which a typed function | ||
| refused and some filters and joins failed on. | ||
| - Such columns come from an Arrow table of your own, a pandas `Categorical` of strings, and a | ||
| polars `Categorical` or `Enum`. Decode the column first: | ||
| - with pyarrow, cast the column to the fully decoded type the error message gives. For a | ||
| plain dictionary column that is `column.type.value_type`. For a struct with a dictionary | ||
| field it is, for example, `pa.struct([("k", pa.string()), ("n", pa.int64())])`. | ||
| - three kinds need a step first: a dictionary whose values hold a dictionary (decode the | ||
| top level of each chunk with `dictionary_decode()`, then cast), a list view (cast it to a | ||
| large list of the decoded items) and a run-end-encoded column (cast its values, then | ||
| expand the runs with `pyarrow.compute.run_end_decode`). The troubleshooting page gives | ||
| each call. | ||
| - with polars, `df = df.with_columns(pl.col(name).cast(pl.String))`. | ||
|
|
||
| When you replace the column, keep its field | ||
| (`table.set_column(i, field.with_type(decoded), column)`), so its nullability and | ||
| metadata stay. Or keep a data frame whole as a value in a cell: a data frame in a cell (a | ||
| library value) is not a dictionary column and is accepted as before. | ||
|
|
||
| ### Changed | ||
|
|
||
| - `GroupBy` no longer reads a dictionary-encoded float key by the bits of its values, as | ||
| ITL-1234 describes. Such a key is now refused when its source or stream is built, so that | ||
| branch is removed. |
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.