You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/05/04 03:25:09 UTC
[GitHub] [arrow-rs] HaoYang670 opened a new issue, #1643: Add tests and examples for `UnionArray::from(data: ArrayData)`
HaoYang670 opened a new issue, #1643:
URL: https://github.com/apache/arrow-rs/issues/1643
**Is your feature request related to a problem or challenge? Please describe what you are trying to do.**
There is no test or example covering `UnionArray::from(data: ArrayData)`. We need to add some.
```rust
impl From<ArrayData> for UnionArray {
fn from(data: ArrayData) -> Self {
let mut boxed_fields = vec![];
for cd in data.child_data() {
boxed_fields.push(make_array(cd.clone()));
}
Self { data, boxed_fields }
}
}
```
--
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-rs] HaoYang670 commented on issue #1643: Add tests and examples for `UnionArray::from(data: ArrayData)`
Posted by GitBox <gi...@apache.org>.
HaoYang670 commented on issue #1643:
URL: https://github.com/apache/arrow-rs/issues/1643#issuecomment-1117192635
I have found the function is used in `try_new` which has been tested. So close this issue.
--
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-rs] HaoYang670 closed issue #1643: Add tests and examples for `UnionArray::from(data: ArrayData)`
Posted by GitBox <gi...@apache.org>.
HaoYang670 closed issue #1643: Add tests and examples for `UnionArray::from(data: ArrayData)`
URL: https://github.com/apache/arrow-rs/issues/1643
--
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