On this page
Guarantees
Halyard's design goal is to move errors from runtime to compile time, and to do it for the errors that break data pipelines: a renamed column, an unexpected category, a silently lost digit, a missing value nobody handled.
The table below lists each guarantee as the language is designed to give it. For every other ecosystem it names the tools that get closest to the same guarantee, and then where those tools fall short. The roadmap shows which parts of the Halyard column are already implemented.
Tool behaviour was checked against the documentation and current releases as of October 2026.
The guarantees
| Guarantee | Halyard | Python | R | Julia | SQL / dbt | Stata |
|---|---|---|---|---|---|---|
| Column names and types checked | Compile time, against the schema of the source | pandera, dataframely, patito, strictly-typed-pandas → column checks run at runtime; static checkers compare schema class names, never column-name strings | pointblank, validate, assertr → runtime only; ry, a static checker, is experimental | TypedTables.jl, JET.jl → check typed tables only, at JIT or analysis time; DataFrames.jl columns are untyped and looked up by name at runtime | database catalog, dbt contracts, dbt Fusion (strict), SQLMesh → Fusion and SQLMesh check at compile time, but only against source schemas fetched from the warehouse or written by hand; Fusion's default mode skips type checks | confirm variable, set varabbrev off → runtime; abbreviation is on by default, so a stale name can silently match a different variable |
| Schema carried through select, join, group and derive | Inferred through every operation at compile time | pandera / dataframely DataFrame[Schema] → not inferred; every intermediate result needs its own declared schema plus a re-validate or cast | pointblank per step → not inferred | TypedTables.jl with compiler inference → typed tables only; DataFrames.jl transforms are type-unstable by design | dbt Fusion (strict), SQLMesh, dbt contracts → Fusion and SQLMesh infer types across models; dbt Core contracts are checked only at build | datasignature confirm, frames → manual; every frame is a mutable dataset that any command can change |
| Category values restricted | Enum-typed column; a value outside the enum is a compile-time error | Polars pl.Enum, pandas Categorical, pandera isin → enforced at runtime only; pandas concat with new values silently turns the column into plain strings | factor, pointblank col_vals_in_set → an unknown value becomes NA: silently in factor(), with only a warning on assignment | CategoricalArrays.jl → assigning an unseen value silently adds a new level | ENUM, CHECK, dbt accepted_values → ENUM is engine-specific and many warehouses ignore CHECK; the dbt test runs after the table is built | assert inlist(), assert inrange() → manual, runtime |
| Value labels | Part of the enum type: code and label in one declaration | pyreadstat → labels are a separate metadata dict; converting to Categorical loses the codes | haven, labelled → attributes that coercion and many base functions drop | ReadStatTables.jl → labels live in a LabeledArray column; nothing checks values against them | lookup table + foreign key → needs a join; foreign keys are unenforced in most warehouses | label define, label values, labelbook → native but metadata; unlabelled values are allowed and reported only when you ask |
| Numeric precision | Only Int widens to Float; passing a Decimal as a Float is a compile error | decimal.Decimal, Polars Decimal, pyright → the checker rejects a Decimal for a float, but frames don't: Polars Decimal + float silently gives Float64, pandas .mean() returns float64 | bit64, Rmpfr → no decimal type (bit64 is int64, Rmpfr is big binary floats); literals are double | FixedPointDecimals.jl, Decimals.jl → mixing with Float64 silently promotes: a FixedDecimal becomes Float64, and Decimals.jl turns the Float64 into a Decimal, rounding error included | NUMERIC / DECIMAL → implicit casts are engine-specific and silent (Postgres: numeric × double precision gives double precision; 1/2 gives 0) | set type double, import …, asdouble → the default float holds about 7 digits, so IDs above 16,777,216 lose precision silently |
| Missing values | No null; Maybe a, and the compiler requires the missing case to be handled | Optional + pyright, nullable=False in pandera / dataframely → frame columns are checked at runtime only; float columns hold NaN invisibly to the type | na.rm, na.action, pointblank col_vals_not_null → each function has its own NA argument; table and lm drop NAs silently | Union{Missing,T}, skipmissing → missing spreads silently through arithmetic; only if missing throws | NOT NULL, dbt not_null → three-valued logic; aggregates skip NULL silently | assert !missing(), misstable → . sorts above every number, so if x > 100 includes missing values; estimation drops incomplete rows silently |
| Failure in the signature | Result / Maybe in the type; no exceptions | returns → opt-in; pandas, Polars and pandera raise exceptions | tryCatch, purrr safely → not in signatures | ResultTypes.jl, ErrorTypes.jl → opt-in and little used; the ecosystem throws exceptions | CAST raises; TRY_CAST / SAFE_CAST → silently gives NULL, indistinguishable from a real NULL | capture, _rc, confirm → capture swallows the error unless _rc is checked by hand |
| Exhaustive matching | A missing case is a compile error — for enums, lists, tuples, records and literal domains alike, with the missing shapes named as witnesses | pyright reportMatchNotExhaustive, mypy exhaustive-match, assert_never → opt-in; enums, Literal and unions only, never column values | none → switch returns an invisible NULL and case_when returns NA when nothing matches | MLStyle.jl, Match.jl → no exhaustiveness check; SumTypes.jl @cases checks only its own sum types | none → CASE without ELSE silently gives NULL | none |
| Effects | Effects are part of the function type; handlers swap them out in tests | none → convention only | none → convention only; <<- and I/O are allowed anywhere | Base.@assume_effects → unchecked compiler hints; purity by convention | declarative SELECT, Postgres volatility → NOW() / RANDOM() are allowed and volatility is planner metadata, not a check; dbt hooks run arbitrary SQL | preserve / restore, frame prefix → the dataset is global and mutable |
| Lineage | Column lineage is built into the language | OpenLineage / Marquez, Dagster → external metadata that needs integration; pandas and Polars emit none | targets → tracks whole objects and files, not columns | none → colmetadata! holds free-form notes only | dbt, SQLMesh, sqlglot → model level in dbt Core; column level in SQLMesh / sqlglot and in paid or proprietary dbt editions | notes, datasignature, log → manual; nothing is recorded automatically |
| Error messages | Location, hint, note and "did you mean" on every error | CPython 3.10–3.14 tracebacks → suggest names, attributes, imports and keywords; library errors vary (Polars suggests columns, pandas gives a bare KeyError) | rlang, cli → rich messages only where packages adopt them; base errors are terse | Julia ≥ 1.10 trace truncation, AbbreviatedStackTraces.jl → MethodError messages and candidate lists stay long | engine messages → quality depends on the engine; dbt errors point at the compiled SQL, not the Jinja source | set trace on → a one-line message plus an r(###) code; no line number or source location |
Where the other ecosystems fall short
- Checks run at runtime, on the paths that execute. A schema error in a branch the test data never reaches gets to production. dbt Fusion and SQLMesh are the exception for SQL, and even they check only against source schemas fetched from the warehouse or written by hand.
- Schemas are not carried through transformations. After a join or an aggregation the result has a new schema that nothing checks, so every intermediate result is validated by hand or not at all. That is where pipeline bugs live.
- The guarantees are opt-in. Every check is a separate tool or call. One unvalidated frame or untyped helper breaks the chain without a warning.
- Failure is invisible. Exceptions, conditions and return codes are not part of a signature, and
TRY_CAST,captureandna.rmturn failures into ordinary-looking values. - Missing values follow different rules everywhere.
NaN,NA,NULL,missingand.each spread or compare in their own way, and none of them forces a decision about what a missing value means. - Numbers convert silently inside libraries. Precision is lost to storage types, promotion rules and aggregations the code never mentions.
- Value labels are metadata. The mapping from code to meaning sits next to the data and can drift away from the code that uses it.
- Effects are untracked. Nothing distinguishes a pure transform from one that reads the clock, the network or an unseeded random generator, so reproducibility depends on pinning the environment rather than on the code.
- Runtime validation has a cost. Checking large frames at every boundary is slow, so checks are sampled or switched off in production, which is where they matter most.
- Several tools to maintain. Typing, validation, data-quality testing and lineage are separate products, each with its own configuration and no shared view of the schema.
Where the other ecosystems are ahead
- Python and R: library breadth, notebooks, the people you can hire, and decades of production use.
- SQL engines: query optimisers and scale; dbt's integrated testing and lineage workflow.
- Stata and R: survey estimation and econometrics packages that statisticians trust.
- Julia: numerical performance and multiple dispatch for scientific code.
Further reading
- DataFrame Type Safety: schema annotations and column type checking
- Data Contracts: enum-typed columns and value labels
- Data Lineage: column lineage
- Error Handling:
Result,Maybeand error messages - Effects: effect types and handlers