dttung2905 commented on code in PR #605:
URL: https://github.com/apache/iceberg-go/pull/605#discussion_r2539771542
##########
table/arrow_utils.go:
##########
@@ -616,6 +616,13 @@ func (c convertToArrow) VisitUUID() arrow.Field {
return arrow.Field{Type: extensions.NewUUIDType()}
}
+func (c convertToArrow) VisitUnknown() arrow.Field {
+ // UnknownType cannot be converted to Arrow as it has no concrete
representation
+ panic("cannot convert UnknownType to Arrow schema")
+}
Review Comment:
Do you think it makes sense to provide something like this ? I'm using Null
as the storage type since UnknownType fields are always null
```
func (c convertToArrow) VisitUnknown() arrow.Field {
return arrow.Field{
Type: extensions.NewOpaqueType(arrow.Null, "unknown",
"apache.iceberg"),
}
}
```
--
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]