[
https://issues.apache.org/jira/browse/ARROW-10434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Russo updated ARROW-10434:
---------------------------------
Description:
Debug printing arrays with a length longer than 10 and less than 20 may
duplicate some values in the 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}
was:
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}
> [Rust] Debug printing arrays with lengths between 10 and 20 prints 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 a length longer than 10 and less than 20 may
> duplicate some values in the 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)