You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Jorge Leitão (Jira)" <ji...@apache.org> on 2020/11/02 20:54:00 UTC
[jira] [Resolved] (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 ]
Jorge Leitão resolved ARROW-10434.
----------------------------------
Fix Version/s: 3.0.0
Resolution: Fixed
Issue resolved by pull request 8564
[https://github.com/apache/arrow/pull/8564]
> [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
> Fix For: 3.0.0
>
>
> 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)