harshmotw-db commented on code in PR #53005:
URL: https://github.com/apache/spark/pull/53005#discussion_r2515926348
##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetSchemaConverter.scala:
##########
@@ -373,6 +373,10 @@ class ParquetToSparkSchemaConverter(
Option(field.getLogicalTypeAnnotation).fold(
convertInternal(groupColumn,
sparkReadType.map(_.asInstanceOf[StructType]))) {
+ // Temporary workaround to read Shredded variant data
+ case v: VariantLogicalTypeAnnotation if v.getSpecVersion == 1 &&
sparkReadType.isEmpty =>
+ convertInternal(groupColumn, None)
Review Comment:
@chenhao-db I have added this temporary workaround on the reader side to
allow tests to be able to scan a table containing Variant data if the
`VARIANT_ALLOW_READING_SHREDDED` config is set to true
--
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]