chenhao-db opened a new pull request, #50517:
URL: https://github.com/apache/spark/pull/50517

   ### 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 relaxing the 
requirement that `singleVariantColumn` must not exist together with the 
user-specified schema. The new requirement is that, if the user-specified 
schema exists, it must either be a variant field, or a variant field plus a 
corrupt column field. Corrupt data can be collected in the latter case.
   
   ### 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.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to