zeroshade commented on code in PR #1706:
URL: https://github.com/apache/arrow-go/pull/1706#discussion_r4743081205
##########
arrow/csv/common.go:
##########
@@ -301,6 +301,7 @@ func readTypeSupported(dt arrow.DataType) bool {
case *arrow.StringType, *arrow.LargeStringType:
case *arrow.TimestampType:
case *arrow.Date32Type, *arrow.Date64Type:
+ case *arrow.Time32Type:
Review Comment:
Since `readTypeSupported` recurses into list element types, this also
enables `list<time32>`. It works (I checked a `list<time32[ms]>` round-trip
locally). A test case for it would be nice but optional.
##########
arrow/csv/transformer.go:
##########
@@ -183,6 +183,16 @@ func (w *Writer) transformColToStringArr(typ
arrow.DataType, col arrow.Array, st
res[i] = w.nullValue
}
}
+ case *arrow.Time32Type:
Review Comment:
Leaving out `time64` makes sense since the reader can't parse it yet.
Writing a `time64` column still panics with `unsupported data type`, though, so
it might be worth a follow-up issue so it doesn't get lost.
--
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]