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

[jira] [Created] (ARROW-10434) [Rust] Debug printing arrays may print incorrect values

Daniel Russo created ARROW-10434:
------------------------------------

             Summary: [Rust] Debug printing arrays may print incorrect values
                 Key: ARROW-10434
                 URL: https://issues.apache.org/jira/browse/ARROW-10434
             Project: Apache Arrow
          Issue Type: Bug
            Reporter: Daniel Russo


Debug printing arrays with a length longer than 10 may duplicate some values in the output. Printing an array with 10 elements produces the correct output.

*_+Example: array with 10 elements+_*
{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+*_
{code:java}
println!("{:?}", Int32Array::from(vec![0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]));
{code}
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}



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