Repository navigation
Description
This Epic is for hardening Vortex's type system, ensuring it is sound, consistent, and robust.
Status
Active. Canonical Decimal width and host precision checks have merged (#11571, #11572, #11573). Both new wire formats are available in unstable (#11615). Generic casts now preserve extension identity (#11599), and Arrow import normalizes non-nullable levels (#11617). Claim checks and value validation are open (#11600 and #11601).
The current design is in #10633 and #11237, especially the extension type decisions and the Decimal decisions. Both PRs are for research and discussion and are not intended to merge.
Goal
We want to ensure that users of Vortex do not run into any issues with Vortex's type system. In an ideal world, all of these are true:
- Using provided types do not cause any issues (types are sound and consistent)
- Logical / physical boundary is always consistent
- Provided types are sufficient for most use cases (no missing provided types)
- Users (and us as well) can easily add their types via extension types
- Working with extension types is easy
Motivation
A robust type system means less bugs and easier abstractions. By ensuring this, users can interact with Vortex more confidently.
Examples that motivated this work include the multiple canonical decimal forms behind the fuzzer crashes in #5820 (#10701), and extension operations that leaked storage semantics or disagreed between execution paths (#7683).
Workstreams
- Tracking Issue: Fix Canonical Decimal #10701 tracks one canonical decimal width per dtype. Construction and same-dtype compute are complete on
develop(Require canonical storage width for decimal arrays #11571, Check decimal precision at construction #11572, Use canonical widths in decimal compute kernels #11573). DecimalByteParts decodes to the canonical width on the CPU and on the GPU for arrays with no lower parts (Keep the DecimalByteParts MSP at its logical integer width #11459, Decode decimal byte parts on the GPU at the canonical width #11460). - Tracking Issue: Add
Widenencoding for integers and decimals #10733 tracksWidenfor integers and decimals. The wire format merged in Add a wire format for Widen arrays #11597 and is available inunstablealongside DecimalByteParts v2 (Add DecimalByteParts v2 and Widen to the unstable edition #11615). Preview andcorepromotion remain open. Broader adoption of integerWidenis deferred. - Tracking Issue: Fix Extension Types #11114 tracks making extension types opaque under Epic: Extension Types #7683. Storage declaration, Arrow import normalization, DataFusion schema checks, and cast restrictions have landed. Tracking Issue: Extension Type Derives #11115 tracks
EqandOrdclaims through Add extension claims #11579, Check extension claims in each function #11600, and Check claims in the extension conformance harness #11604. Check extension values when arrays are built and imported #11601 covers array and import validation. - Epic: Logical
Uniontype #7705: logicalUnionsupport. - First class FixedSizeBinary support #9902: first-class
FixedSizeBinary. The plan makes it a core type. - Wide primitive integers: add
I128,I256,U128andU256. A dedicated tracking issue follows when the work is scheduled. This andFixedSizeBinaryare outside the canonical decimal fix.
The design permits casts only through explicit rules for each dtype pair. The extension plan uses exact casts, with named functions for lossy unit changes. Existing lossy primitive casts and broader decimal arithmetic changes remain separate work.
Recent merged extension foundations and fixes
- Preserve extension metadata on Arrow dictionary import #10645 (2026-10-20): preserve extension metadata when importing Arrow dictionaries
- Honour NaN options in min/max over float-backed extension types #10851 (2026-10-27): honor NaN options in min/max over float-backed extension types
- Return errors for invalid temporal types and values #11015 (2026-10-30): return errors for invalid temporal types and values
- Add execution path consistency assertions #11013 (2026-10-30): compare batch, row and constant execution against an explicit expected result
- Change extension dtype nullability without validating again #11012 (2026-11-02): change top-level extension nullability without revalidating, and fix erased dtype debug output
- Require matching dtypes for extension comparisons #11016 (2026-11-02): require matching logical dtypes for extension comparisons, ignoring nullability
- Preserve extension literals in DataFusion comparisons #11067 (2026-11-02): preserve extension literals in DataFusion comparisons and
INlists, and reject bare scalar export that would discard the type - Validate extension storage and return scalar read errors #11014 (2026-11-02): validate scalar storage before the extension validator and return validation errors from scalar reads and aggregate results
#10953 made Timestamp accept every i64 count and widened DateTimeParts days when needed. #11099 documents the comparison paths. The extension implementation plan tracks the remaining work alongside #11114 and #11115.
Unresolved questions
-
Do the planned 128-bit and 256-bit integer types and(yes)FixedSizeBinary(First class FixedSizeBinary support #9902) belong to this Epic?
Activity
Uniontype #7705Widenencoding for integers and decimals #10733