You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "yevgenypats (via GitHub)" <gi...@apache.org> on 2023/05/19 10:16:31 UTC

[GitHub] [arrow] yevgenypats opened a new issue, #35684: [Go][Parquet] panic for listof(types) if null

yevgenypats opened a new issue, #35684:
URL: https://github.com/apache/arrow/issues/35684

   ### Describe the bug, including details regarding any error messages, version, and platform.
   
   parquet writer will panic on any of the following types if the value null:
   
   ```
   		{Name: "f1", Type: arrow.ListOf(arrow.FixedWidthTypes.Date32)},
   		{Name: "f2", Type: arrow.ListOf(arrow.FixedWidthTypes.Date64)},
   		{Name: "f3", Type: arrow.ListOf(arrow.FixedWidthTypes.Timestamp_us)},
   		{Name: "f4", Type: arrow.ListOf(arrow.FixedWidthTypes.Timestamp_ms)},
   		{Name: "f5", Type: arrow.ListOf(arrow.FixedWidthTypes.Time32ms)},
   		{Name: "f6", Type: arrow.ListOf(arrow.FixedWidthTypes.Time64ns)},
   		{Name: "f7", Type: arrow.ListOf(arrow.FixedWidthTypes.Time64us)},
   ```
   
   ### Component(s)
   
   Go


-- 
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: issues-unsubscribe@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade commented on issue #35684: [Go][Parquet] panic for listof(types) if null

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade commented on issue #35684:
URL: https://github.com/apache/arrow/issues/35684#issuecomment-1554905107

   @yevgenypats So, looking at your example, the panic is coming because you only add a null to *one* of the fields in the record builder. Which means the builders are unbalanced for the record. One column has a length of 1 and the rest all have length 0, and a record must have the same number of rows in every column. So that's where your panic is coming from.
   
   That said, after changing your example so that it appends a null to *every* column, I still got an error from a nil pointer dereference so I'm looking into that to fix it.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [arrow] zeroshade closed issue #35684: [Go][Parquet] panic for listof(types) if null

Posted by "zeroshade (via GitHub)" <gi...@apache.org>.
zeroshade closed issue #35684: [Go][Parquet] panic for listof(types) if null
URL: https://github.com/apache/arrow/issues/35684


-- 
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: issues-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org