[
https://issues.apache.org/jira/browse/ARROW-10434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ARROW-10434:
-----------------------------------
Labels: pull-request-available (was: )
> [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
> Components: Rust
> Reporter: Daniel Russo
> Assignee: Daniel Russo
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.0.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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)