Truthound · Schema and type contracts · 2/6
Preserve field names, types and key semantics across versions.
119 articles
Check reserved-name readiness in Trino metadata queries
Exercise each consumer-facing metadata query for a table with a reserved-word column. Success on another metadata path, or an abbreviated SQL description, cannot stand in for the required query parsing successfully.
Declare Parquet statistic order alongside Trino min and max
Before consuming Parquet min/max, check each leaf's column_orders declaration against schema order. Passing the declaration check still leaves the numerical correctness of the bounds to independent validation.
Require Iceberg v2 snapshot fields beyond one reader’s acceptance
Check required fields for the Iceberg format version separately from reader acceptance. Verify manifest-list and summary presence in a new snapshot before proceeding to the contents of its references.
Check current-schema-id before combining Iceberg REST cleanup and schema changes
When cleanup and column addition share a REST request, the current schema reference must still resolve to a retained definition.
Review the coordinate-axis contract behind Iceberg default CRS compatibility
Evaluate a default CRS and table CRS through the file format's coordinate order and a reviewed pair, rather than names alone. A documented compatibility convention does not establish interchangeability for every CRS.
Project non-null union branches when validating the Hudi file-group reader
Reconcile file-group projection of an Avro union with the legacy path using branch values and member representations. Success for a top-level name cannot approve an untested nested branch.
Keep Hudi record-index scope unchanged during a size rebuild
Check that a size-oriented index rebuild preserved its partitioned or global scope. Reconcile the prior definition with effective configuration rather than inferring identity from a shared metadata name.
Check Hudi narrow-integer write, read, and statistics readiness separately
Check write, read, and statistics readiness separately for narrow-integer bulk_insert. Keep ShortType and ByteType paths distinct; file presence or a successful ordinary insert cannot approve statistics-dependent consumption.
Validate NULL array elements across Hudi list-encoding paths
Arrays containing NULL elements need a round-trip check through each consumer path after the write succeeds. Track parent validity, element positions, and NULL state separately to expose empty-array substitution or lost elements.
Approve remote time-decoding read budgets alongside dtype safety
Evaluate open-time improvements using both request counts and preservation of time ranges. Keep actual radar ranges distinct from general decoder boundaries.
When an Xarray pseudoinverse changes shape but keeps the old coordinates
A pseudoinverse changes axis roles. Reconcile each output axis with its coordinates before relying on the total element count.
Check the returned drop_encoding object when NetCDF coordinates truncate
Approve in-memory concatenation and final-file coordinates separately. Do not reject a workaround tested without retaining its returned object.
Approve integer missing sentinels and physical-value decoding per variable
A global mask_and_scale setting should not silently decide distinct representation contracts for different variables.
Keep empty Xarray selections distinct from backend execution failures
An empty axis can be a valid result. Keep execution errors separate from the resulting axis structure.
Before using a Crammer–Singer iteration count to trigger retraining
Reconcile joint-solver measurements with reported counts. Do not repeatedly raise max_iter from a warning alone.
Separate category-code magnitude from tree category cardinality
Before changing original labels to satisfy an error message, establish whether the real limit concerns values or their count.
Admit sparse-sum values and out-buffer identity separately
A new array containing the same numbers is different from the supplied buffer itself. Make the shared-output contract explicit.
Before admitting a finite scalar sqrtm result as a square root
Separate the scalar-input policy from an explicit 1×1 matrix. Verify the returned value against the original equation.
Which grid does an even Savitzky–Golay window describe?
The central evaluation point and the original sample grid can be different contracts. Do not read a half-grid shift as error magnitude alone.
A small experiment before deduplicating NULL structs and NULL children
Define whether an absent parent differs from a present parent with a NULL child. Check overall distinct counts and row-level decisions separately.
