Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SPARK-51296][SQL] Support collecting corrupt data in singleVariantColumn mode #50051

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenhao-db
Copy link
Contributor

What changes were proposed in this pull request?

Currently, if the singleVariantColumn is specified, the schema will be a single variant column. It is then impossible to collect corrupt data, which requires the schema to contain a column for corrupt data. This PR enables collecting corrupt data in singleVariantColumn mode by adding a new option, corruptRecordColumnWithSingleVariantColumn. It only takes effect when singleVariantColumn is specified. It defines the column name for the corrupt record, and the schema will contain exactly two columns: the single variant column to capture valid data, and the corrupt record column to capture corrupt data.

Why are the changes needed?

It allows collecting corrupt data in singleVariantColumn mode.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit test.

Was this patch authored or co-authored using generative AI tooling?

No.

@github-actions github-actions bot added the SQL label Feb 22, 2025
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