Skip to content

Spark 4.1: Add validation for required fields in add_files procedure#16977

Open
ebyhr wants to merge 1 commit into
apache:mainfrom
ebyhr:ebi/spark-add-files-not-null
Open

Spark 4.1: Add validation for required fields in add_files procedure#16977
ebyhr wants to merge 1 commit into
apache:mainfrom
ebyhr:ebi/spark-add-files-not-null

Conversation

@ebyhr

@ebyhr ebyhr commented Jun 26, 2026

Copy link
Copy Markdown
Member

add_files bypasses NOT NULL column constraints - importing a Parquet/ORC/Avro
file with null values in a required column silently succeeds, violating the
table's schema integrity.

Validation is skipped when null-value metrics are not collected (e.g., metrics
mode set to none), since there is no data to validate against.

@github-actions github-actions Bot added the spark label Jun 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant