dgvj-work commented on code in PR #1241:
URL: https://github.com/apache/arrow-go/pull/1241#discussion_r3900754549


##########
parquet/pqarrow/schema.go:
##########
@@ -353,7 +353,7 @@ func fieldToNode(name string, field arrow.Field, props 
*parquet.WriterProperties
                return schema.MapOf(field.Name, keyNode, valueNode, 
repFromNullable(field.Nullable), fieldIDFromMeta(field.Metadata))
        case arrow.EXTENSION:
                extType := field.Type.(arrow.ExtensionType)
-               if extType.ExtensionName() == "parquet.variant" {
+               if extensions.IsVariantExtensionName(extType.ExtensionName()) {
                        return variantToNode(extType.(*extensions.VariantType), 
field, props, arrprops)

Review Comment:
   ToParquet now reconstructs a VariantType from the extension storage instead 
of asserting `*VariantType`. The registry-returned `parquet.variant` type 
converts the same way as the canonical type, with a regression test covering 
that path.



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

Reply via email to