You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Andrew Lamb (Jira)" <ji...@apache.org> on 2021/02/10 11:30:00 UTC

[jira] [Resolved] (ARROW-11577) [Rust] Concat kernel panics on slices of string arrays

     [ https://issues.apache.org/jira/browse/ARROW-11577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Lamb resolved ARROW-11577.
---------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 9460
[https://github.com/apache/arrow/pull/9460]

> [Rust] Concat kernel panics on slices of string arrays
> ------------------------------------------------------
>
>                 Key: ARROW-11577
>                 URL: https://issues.apache.org/jira/browse/ARROW-11577
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Rust
>            Reporter: Ben Chambers
>            Assignee: Ben Chambers
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> See the test case below:
> {code:java}
> #[test]
> fn test_string_array_slices() -> Result<()> {
>     let input_1 = StringArray::from(vec!["hello", "A", "B", "C"]);
>     let input_2 = StringArray::from(vec!["world", "D", "E", "Z"]);
>     let arr = concat(&[
>         input_1.slice(1, 3).as_ref(),
>         input_2.slice(1, 2).as_ref(),
>     ])?;
>     let expected_output = StringArray::from(vec!["A", "B", "C", "D", "E"]);
>     let actual_output = arr
>         .as_any()
>         .downcast_ref::<StringArray>()
>         .unwrap();
>     assert_eq!(actual_output, &expected_output);
>     Ok(())
> }{code}
> Fails with:
> {noformat}
> range end index 8 out of range for slice of length 7
> thread 'compute::kernels::concat::tests::test_string_array_slices' panicked at 'range end index 8 out of range for slice of length 7', arrow/src/array/transform/variable_size.rs:38:23
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)