[SPARK-57418][DOCS] Add singleVariantColumn option to CSV, JSON, and XML data source options tables#56469
Open
brijrajk wants to merge 1 commit into
Open
Conversation
…XML data source options tables
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Added the missing
singleVariantColumnoption to the Data Source Options tables in:docs/sql-data-sources-csv.mddocs/sql-data-sources-json.mddocs/sql-data-sources-xml.mdThe option was introduced in Spark 4.1.0 (SPARK-51298 for CSV, also supported for JSON and XML) but was never documented in the reference tables. It is defined as a shared constant in
DataSourceOptions.scalaand consumed byCSVOptions,JSONOptions, andXmlOptions.Why are the changes needed?
Users have no way to discover
singleVariantColumnfrom the official data source options reference. The option allows ingesting an entire CSV/JSON/XML record as a singleVariantTypecolumn instead of parsing it into individual fields — a key use case for the Variant type introduced in Spark 4.0.Does this PR introduce any user-facing change?
No. Documentation only.
How was this patch tested?
No code change — documentation only. Verified the option is defined in
DataSourceOptions.scala(line 78),CSVOptions.scala(line 338),JSONOptions.scala(line 215), andXmlOptions.scala(line 194).Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude (Anthropic)