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
tui: fix ColumnsModal crash on slugs with duplicate column names (0.1.5)
The new Columns modal in 0.1.4 used the bare column name as the Textual
DataTable row key, which crashes with DuplicateKey on the 11 slugs that
ship parquet schemas with legitimately repeated top-level names — the
osmi-mental-health-in-tech-* survey series (2016–2023, repeating "Why
or why not?" follow-ups under each yes/no item), uci-spambase, uci-
parkinsons, and uk-price-paid. The by-name stats dict silently
collapsed duplicate-named entries on top of that.
Suffix repeated names with " (2)", " (3)", etc. at construction time so
the DataTable row key is unique and stats_by_name keeps each occurrence
separately. The underlying parquet column names are untouched; the
suffix is display + lookup only.
The deeper read_column_stats over-counting bug (length summed across
duplicate-named fields, min/max/nulls dropped because the len(indices)
== 1 branch is skipped) is left as a separate follow-up — fixing it
would change snapshot.json contents for the affected slugs.
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: mprammer <martin@spiraldb.com>
0 commit comments