brijrajk commented on code in PR #56469:
URL: https://github.com/apache/spark/pull/56469#discussion_r3452488000
##########
docs/sql-data-sources-xml.md:
##########
@@ -105,6 +105,13 @@ Data source options of XML can be set via:
<td>read</td>
</tr>
+ <tr>
+ <td><code>singleVariantColumn</code></td>
+ <td>(none)</td>
+ <td>If specified, the entire XML record is parsed and stored as a single
column of <code>VariantType</code> with the given column name, instead of being
split into individual fields.</td>
+ <td>read</td>
Review Comment:
You're absolutely right — `StaxXmlGenerator.write` checks
`options.singleVariantColumn` to unwrap the single-variant-column layer when
writing. Updated the XML row to `read/write` and added a brief note about the
write-side behavior. Thanks for the pointer!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]