nssalian commented on code in PR #932:
URL: https://github.com/apache/iceberg-go/pull/932#discussion_r3150655157


##########
table/internal/parquet_files.go:
##########
@@ -1075,6 +1080,14 @@ func (p *pruneParquetSchema) Field(field 
pqarrow.SchemaField, result arrow.Field
                return result
        }
 
+       // Variant is an extension type wrapping a struct (metadata + value).
+       // Select the entire field including all children.
+       if ext, ok := field.Field.Type.(arrow.ExtensionType); ok && 
ext.ExtensionName() == "parquet.variant" {
+               p.collectLeafIndices(field)

Review Comment:
   Will extract to a `projectVariant` method.



-- 
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]

Reply via email to