Skip to content

Epic: Harden Type System #10730

Open
0 of 7 issues completed
Open

Description

@connortsui20

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

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

#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

Metadata

Metadata

Assignees

Labels

epic

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions