Skip to content

Nested checks warnings, sodacl export, jsonschema union handling (#1278) - #1654

Merged
jschoedl merged 7 commits into
mainfrom
nested-checks-warnings-1278
Sep 24, 2026
Merged

jschoedl merged 7 commits into
mainfrom
nested-checks-warnings-1278

Conversation

@jschoedl

Copy link
Copy Markdown
Collaborator

Implements the three open points from issue #1278:

  1. Nested checks now run on DuckDB-backed servers (local, s3, gcs, azure, duckdb, iceberg, kafka) and Spark backends. On unsupported backends they're reported as warnings.

  2. export sodacl warns when nested properties are left out (Soda CL only checks top-level columns).

  3. import jsonschema handles nullable anyOf/oneOf by unwrapping to the single non-null type, and warns about true union types.

See the three commits for detailed changes to each subsystem.

… backends (#1278)

- Nested checks (required, type, SQL quality) now enforce on local/s3/gcs/azure (parquet, csv, json, delta), duckdb, iceberg, kafka, dataframe, databricks
- On unsupported backends (Snowflake, BigQuery, Postgres, etc.) nested checks are reported as warnings, not silently dropped
- Summary output folds checks sharing identical reasons: one line per reason with count and affected fields
Nested properties cannot be exported to Soda CL; a warning now lists them (first 5, then count of remaining).
)

- Unwraps single non-null branches from anyOf/oneOf (e.g. Optional[int] → integer, not string)
- Renders true unions (multiple types) as logicalType: string with physical type showing all options
- Warns about union types via existing report_unmapped_types() mechanism
@jschoedl jschoedl linked an issue Sep 24, 2026 that may be closed by this pull request
…hes (#1278)

Missing nested fields now fail with the full path (e.g. "Column 'customer.email' not found") instead of leaking Python errors. Boolean branches in JSON Schema anyOf/oneOf are now handled: false branches admit nothing and are dropped, true branches admit any value and import as unconstrained (string). Parquet type checks warn instead of pass, with corresponding documentation updates and test corrections.
- Array items in union warnings now use [] notation (k[] instead of k.items) for consistency with sodacl and test output
- Both sodacl and jsonschema warnings now list up to 6 items in full; only 7+ are truncated to first 5 + 'and N others' (avoiding '1 others' grammar error)
- Folded summary line puts fields before reason to match single-check format and avoid punctuation dependency
Split changelog to clarify added nested-property checking on DuckDB vs changed warning behavior. Removed redundant sodacl.md text about warnings since union warnings now come from the importer. Simplified parquet documentation to align with csv/json: no type checks are generated; errors surface as read failures.
@jschoedl
jschoedl merged commit 40a360e into main Sep 24, 2026
19 checks passed
@jschoedl
jschoedl deleted the nested-checks-warnings-1278 branch September 24, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Surprising Behaviour (test checks and import)

1 participant