Ray's Knowledge Base
Unlock

Native spill and Python imports support nested column types

FactVerified 30 Sep 2026Holds project: dftracer-utils
Fact. A statement and the evidence for it.

Statement#

The native spill and frame formats support fixed-size list and map columns. spill::put_series carries the JSON flag, time unit and time zone. A shared spill::Dir with next_run() lets multiple Spools share a directory.

Series.from_list imports nested lists and tuples as list columns and dicts as struct columns. Polars list, array and struct columns import without pyarrow. Arrow-backed pandas columns still require pyarrow, which pandas itself needs to hold those columns.

Python objects come from C++ cell(), using the datetime C API and exact NE-s strings for Decimal. NumPy, pandas and Polars wrappers use Series.physical() with null masks or a NaT sentinel. _series_retype changes the type without a copy; _import.py routes pandas and Polars imports through NumPy where applicable. Pickling uses frame_to_native. Bad values raise ValueError; unknown kinds raise TypeError so callers can select a fallback.

Evidence#

Inbox 8397caa9dd reports the final fixes in commits 54ca4156 and f87f782d, after earlier messages said these types were unsupported. The agent reported final-tree C++ suites in Arrow-on and Arrow-off builds, the Python suite, and nested import tests in an environment without pyarrow. Intermediate commits were not built separately.

Earlier notes 0885260c95 and f90d00fc83 supply the metadata, directory and conversion details. Their claims that nested spill and Polars nested import still required refusal or Arrow are superseded by the later fixes in 8397caa9dd. The older observer item ff5b1f7fb6 also predates native pandas and Polars imports; do not use it to restore broad Arrow guards.

Also found by searching

  • Series.from_list([{'a': 1}]) TypeError unsupported kind; polars list column import requires pyarrow?
  • can the dataframe spill to disk and the Python import handle list, map and struct columns without pyarrow?
  • does dftracer-utils support nested list and struct columns in native spill and pandas or Polars import?
  • Polars array struct columns into native Series without Arrow, pickling frame_to_native, nested spill
  • Series.from_list with nested lists or dicts, does it need pyarrow?
  • can the native spill format store list and map columns, or struct columns from polars?
  • how do I import polars list array struct columns into dftracer dataframe without pyarrow?
  • spill::put_series fixed-size list map, multiple Spools sharing a directory next_run