You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tests are failing: "Cannot convert unordered AbstractDicts into OrderedDicts" #44
Here are some clues. If I pin OrderedCollections to v1 (currently its 2.x) then tests pass, but I get the following deprecation warnings:
Conversion to OrderedDict is deprecated for unordered associative containers (in this case, Dict{Any, Any}). Use an ordered or sorted associative type, such as SortedDict and OrderedDict.
caller = DictColumnTable at dicts.jl:3 [inlined]
@ Core ~/.julia/packages/Tables/oWklV/src/dicts.jl:3
So a Tables update of their compat for OrderedCollections, appears to have broken this package. But despite this, I'm not sure Tables.jl would regard this as an issue for them to resolve.
Thanks for the ping. I reproduced this. The fix belongs in ARFFFiles: it passes plain Dicts to Tables.DictColumnTable, relying on the unordered-to-ordered conversion that OrderedCollections 2 now intentionally rejects. ARFFFiles should construct OrderedDicts directly and support OrderedCollections 1 and 2; I don't think Tables should restore the old conversion.
Activity
[-]Tests are failing: "[/-][+]Tests are failing: "Cannot convert unordered `AbstractDict`s into `OrderedDicts`"[/+]ablaom commentedon Aug 7, 2026
Here are some clues. If I pin OrderedCollections to v1 (currently its 2.x) then tests pass, but I get the following deprecation warnings:
ablaom commentedon Aug 7, 2026
So a Tables update of their compat for OrderedCollections, appears to have broken this package. But despite this, I'm not sure Tables.jl would regard this as an issue for them to resolve.
cc @quinnj
quinnj commentedon Aug 9, 2026
Thanks for the ping. I reproduced this. The fix belongs in ARFFFiles: it passes plain
Dicts toTables.DictColumnTable, relying on the unordered-to-ordered conversion that OrderedCollections 2 now intentionally rejects. ARFFFiles should constructOrderedDicts directly and support OrderedCollections 1 and 2; I don't think Tables should restore the old conversion.[reviewed by codex & quinnj]
ablaom commentedon Aug 9, 2026
Thanks, @quinnj . I agree.
The constructor
Tables.DictColumnTableis non-public, and this is essentially what has gotten this package into trouble.Working on a patch along the lines suggested, and will open an issue re use of non-public API.
Use `OrderedDict` instead of `Dict` to resolve failing tests (#45)