ReguiguiMohamed opened a new pull request, #1721:
URL: https://github.com/apache/arrow-go/pull/1721

   ### Rationale for this change
   
   The CSV reader accepts a schema with a `null` column, since 
`readTypeSupported` lists `*arrow.NullType`, but then panics with `arrow/csv: 
unhandled field type *arrow.NullType`. The writer already writes null columns, 
so a file it wrote can't be read back with the same schema.
   
   ### What changes are included in this PR?
   
   A `NullType` case in `initFieldConverter` that appends a null for each value.
   
   ### Are these changes tested?
   
   Yes. `TestCSVReaderNullColumn` reads a file with a null column. It panics on 
main and passes with the fix. `go test -short -tags assert,test 
./arrow/csv/...` passes, with and without `noasm`.
   
   ### Are there any user-facing changes?
   
   The CSV reader reads `null` columns instead of panicking.
   


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