You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "crepererum (via GitHub)" <gi...@apache.org> on 2023/04/21 09:32:13 UTC
[GitHub] [arrow-datafusion] crepererum opened a new issue, #6083: `ScalarValue::Struct::to_array` has broken NULL handling
crepererum opened a new issue, #6083:
URL: https://github.com/apache/arrow-datafusion/issues/6083
### Describe the bug
`ScalarValue::to_array` cannot create true NULL arrays for structs. Instead it creates a struct where all fields are NULL (which is not the same).
### To Reproduce
`ScalarValue::Struct(None, ...).to_array()`
### Expected behavior
The value should be null.
### Additional context
This should just create a NULL array:
https://github.com/apache/arrow-datafusion/blob/26bf31ebbc1274d0f2680d4b944145e794406188/datafusion/common/src/scalar.rs#L2779-L2790
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [arrow-datafusion] alamb closed issue #6083: `ScalarValue::Struct::to_array` has broken NULL handling
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #6083: `ScalarValue::Struct::to_array` has broken NULL handling
URL: https://github.com/apache/arrow-datafusion/issues/6083
--
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