You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "joroKr21 (via GitHub)" <gi...@apache.org> on 2024/04/18 18:09:21 UTC
[I] ScalarValue::iter_to_array doesn't support Duration and Union types [arrow-datafusion]
joroKr21 opened a new issue, #10132:
URL: https://github.com/apache/arrow-datafusion/issues/10132
### Describe the bug
This is causing troubles for one of our user-defined aggregation functions. I don't know if there's an easier way to reproduce the issue. But it looks to me like it should be straightforward to support those data types:
* `Duration` is a primitive
* `Union` is similar to `Struct` and `List` - a single element array
### To Reproduce
I am not sure. I could post some code with the UDAF reproduction but maybe someone knows a way to trigger the issue directly with a query?
### Expected behavior
`ScalarValue::iter_to_array` to support all data types (maybe except the views) but I would settle for those two.
### Additional context
I'm preparing a PR but I need ideas for testing
--
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
Re: [I] ScalarValue::iter_to_array doesn't support Duration and Union types [datafusion]
Posted by "alamb (via GitHub)" <gi...@apache.org>.
alamb closed issue #10132: ScalarValue::iter_to_array doesn't support Duration and Union types
URL: https://github.com/apache/datafusion/issues/10132
--
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: commits-unsubscribe@datafusion.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datafusion.apache.org
For additional commands, e-mail: commits-help@datafusion.apache.org
Re: [I] ScalarValue::iter_to_array doesn't support Duration and Union types [arrow-datafusion]
Posted by "jayzhan211 (via GitHub)" <gi...@apache.org>.
jayzhan211 commented on issue #10132:
URL: https://github.com/apache/arrow-datafusion/issues/10132#issuecomment-2065943601
For duration, I think this test is enough.
```rust
statement error
CREATE TABLE table as VALUES
(arrow_cast(123456, 'Duration(Second)')),
(arrow_cast(234567, 'Duration(Second)'))
----
DataFusion error: Internal error: Unsupported creation of Duration(Second) array from ScalarValue Some(DurationSecond("123456")).
This was likely caused by a bug in DataFusion's code and we would welcome that you file an bug report in our issue tracker
```
https://github.com/apache/arrow-datafusion/blob/19356b26f515149f96f9b6296975a77ac7260149/datafusion/common/src/scalar/mod.rs#L1671-L1689
--
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