Skip to content
Halyard
Project
Source code on Codeberg (opens in new tab)

Search

Menu

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

GuaranteeHalyardPythonRJuliaSQL / dbtStata
Column names and types checkedCompile time, against the schema of the sourcepandera, dataframely, patito, strictly-typed-pandas → column checks run at runtime; static checkers compare schema class names, never column-name stringspointblank, validate, assertr → runtime only; ry, a static checker, is experimentalTypedTables.jl, JET.jl → check typed tables only, at JIT or analysis time; DataFrames.jl columns are untyped and looked up by name at runtimedatabase 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 checksconfirm 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 deriveInferred through every operation at compile timepandera / dataframely DataFrame[Schema] → not inferred; every intermediate result needs its own declared schema plus a re-validate or castpointblank per step → not inferredTypedTables.jl with compiler inference → typed tables only; DataFrames.jl transforms are type-unstable by designdbt Fusion (strict), SQLMesh, dbt contracts → Fusion and SQLMesh infer types across models; dbt Core contracts are checked only at builddatasignature confirm, frames → manual; every frame is a mutable dataset that any command can change
Category values restrictedEnum-typed column; a value outside the enum is a compile-time errorPolars pl.Enum, pandas Categorical, pandera isin → enforced at runtime only; pandas concat with new values silently turns the column into plain stringsfactor, pointblank col_vals_in_set → an unknown value becomes NA: silently in factor(), with only a warning on assignmentCategoricalArrays.jl → assigning an unseen value silently adds a new levelENUM, CHECK, dbt accepted_values → ENUM is engine-specific and many warehouses ignore CHECK; the dbt test runs after the table is builtassert inlist(), assert inrange() → manual, runtime
Value labelsPart of the enum type: code and label in one declarationpyreadstat → labels are a separate metadata dict; converting to Categorical loses the codeshaven, labelled → attributes that coercion and many base functions dropReadStatTables.jl → labels live in a LabeledArray column; nothing checks values against themlookup table + foreign key → needs a join; foreign keys are unenforced in most warehouseslabel define, label values, labelbook → native but metadata; unlabelled values are allowed and reported only when you ask
Numeric precisionOnly Int widens to Float; passing a Decimal as a Float is a compile errordecimal.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 float64bit64, Rmpfr → no decimal type (bit64 is int64, Rmpfr is big binary floats); literals are doubleFixedPointDecimals.jl, Decimals.jl → mixing with Float64 silently promotes: a FixedDecimal becomes Float64, and Decimals.jl turns the Float64 into a Decimal, rounding error includedNUMERIC / 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 valuesNo null; Maybe a, and the compiler requires the missing case to be handledOptional + pyright, nullable=False in pandera / dataframely → frame columns are checked at runtime only; float columns hold NaN invisibly to the typena.rm, na.action, pointblank col_vals_not_null → each function has its own NA argument; table and lm drop NAs silentlyUnion{Missing,T}, skipmissing → missing spreads silently through arithmetic; only if missing throwsNOT NULL, dbt not_null → three-valued logic; aggregates skip NULL silentlyassert !missing(), misstable → . sorts above every number, so if x > 100 includes missing values; estimation drops incomplete rows silently
Failure in the signatureResult / Maybe in the type; no exceptionsreturns → opt-in; pandas, Polars and pandera raise exceptionstryCatch, purrr safely → not in signaturesResultTypes.jl, ErrorTypes.jl → opt-in and little used; the ecosystem throws exceptionsCAST raises; TRY_CAST / SAFE_CAST → silently gives NULL, indistinguishable from a real NULLcapture, _rc, confirm → capture swallows the error unless _rc is checked by hand
Exhaustive matchingA missing case is a compile error — for enums, lists, tuples, records and literal domains alike, with the missing shapes named as witnessespyright reportMatchNotExhaustive, mypy exhaustive-match, assert_never → opt-in; enums, Literal and unions only, never column valuesnone → switch returns an invisible NULL and case_when returns NA when nothing matchesMLStyle.jl, Match.jl → no exhaustiveness check; SumTypes.jl @cases checks only its own sum typesnone → CASE without ELSE silently gives NULLnone
EffectsEffects are part of the function type; handlers swap them out in testsnone → convention onlynone → convention only; <<- and I/O are allowed anywhereBase.@assume_effects → unchecked compiler hints; purity by conventiondeclarative SELECT, Postgres volatility → NOW() / RANDOM() are allowed and volatility is planner metadata, not a check; dbt hooks run arbitrary SQLpreserve / restore, frame prefix → the dataset is global and mutable
LineageColumn lineage is built into the languageOpenLineage / Marquez, Dagster → external metadata that needs integration; pandas and Polars emit nonetargets → tracks whole objects and files, not columnsnone → colmetadata! holds free-form notes onlydbt, SQLMesh, sqlglot → model level in dbt Core; column level in SQLMesh / sqlglot and in paid or proprietary dbt editionsnotes, datasignature, log → manual; nothing is recorded automatically
Error messagesLocation, hint, note and "did you mean" on every errorCPython 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 terseJulia ≥ 1.10 trace truncation, AbbreviatedStackTraces.jl → MethodError messages and candidate lists stay longengine messages → quality depends on the engine; dbt errors point at the compiled SQL, not the Jinja sourceset trace on → a one-line message plus an r(###) code; no line number or source location

Where the other ecosystems fall short

  1. 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.
  2. 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.
  3. 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.
  4. Failure is invisible. Exceptions, conditions and return codes are not part of a signature, and TRY_CAST, capture and na.rm turn failures into ordinary-looking values.
  5. Missing values follow different rules everywhere. NaN, NA, NULL, missing and . each spread or compare in their own way, and none of them forces a decision about what a missing value means.
  6. Numbers convert silently inside libraries. Precision is lost to storage types, promotion rules and aggregations the code never mentions.
  7. 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.
  8. 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.
  9. 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.
  10. 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