You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Daniel Russo (Jira)" <ji...@apache.org> on 2020/10/31 12:54:00 UTC

[jira] [Updated] (ARROW-10434) [Rust] Debug formatting arrays with lengths greater than 10 and less than 20 produces incorrect values

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

Daniel Russo updated ARROW-10434:
---------------------------------
    Summary: [Rust] Debug formatting arrays with lengths greater than 10 and less than 20 produces incorrect values  (was: [Rust] Debug printing arrays with lengths greater than 10 and less than 20 prints incorrect values)

> [Rust] Debug formatting arrays with lengths greater than 10 and less than 20 produces incorrect values
> ------------------------------------------------------------------------------------------------------
>
>                 Key: ARROW-10434
>                 URL: https://issues.apache.org/jira/browse/ARROW-10434
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Daniel Russo
>            Assignee: Daniel Russo
>            Priority: Minor
>
> Debug printing arrays with lengths greater than 10 and less than 20 may duplicate some values in the output. 
> _+Example:+_ Array with 10 elements
> This example demonstrates printing with the correct output. 
> {code:java}
> println!("{:?}", Int32Array::from(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9]));
> {code}
> Output:
> {code:java}
> PrimitiveArray<Int32>
> [
>   0,
>   1,
>   2,
>   3,
>   4,
>   5,
>   6,
>   7,
>   8,
>   9,
> ]
> {code}
> _+Example:+_ Array with 11 elements
> This example demonstrates printing with an unexpected output.
> {code:java}
> println!("{:?}", Int32Array::from(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]));
> {code}
> Actual Output:
> {code:java}
> PrimitiveArray<Int32>
> [
>   0,
>   1,
>   2,
>   3,
>   4,
>   5,
>   6,
>   7,
>   8,
>   9,
>   1,
>   2,
>   3,
>   4,
>   5,
>   6,
>   7,
>   8,
>   9,
>   10,
> ]
> {code}
> Expected Output:
> {code:java}
> PrimitiveArray<Int32>
> [
>   0,
>   1,
>   2,
>   3,
>   4,
>   5,
>   6,
>   7,
>   8,
>   9,
>   10,
> ]
> {code}



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