Bears-R-Us/arkouda

bug in reverse indexing of Strings

Closed this issue · 0 comments

Describe the bug
The reverse indexing of Strings sometimes produces the incorrect result under reverse indexing on multi-local builds.

To Reproduce
With ./arkouda_server -nl 2 the code:

seed  = 8675309
size  = 100
s = ak.random_strings_uniform(1, 2, size, seed=seed)

s[::-1]

Gives output:


In [12]: 
    ...: s[::-1]
    ...: 
Out[12]: array(['A', 'A', 'A', 'A', 'A', 'A', 'A', 'C', 'C', 'C', 'C', 'C', 'C', 'V', 'V', 'V', 'V', 'V', 'V', 'U', 'U', 'U', 'U', 'U', 'U', 'T', 'T', 'T', 'T', 'T', 'T', 'T', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'L', 'L', 'L', 'L', 'L', 'L', 'X', 'X', 'X', 'X', 'X', 'X', 'X', 'D', 'D', 'D', 'D', 'D', 'D', 'B', 'B', 'B', 'B', 'B', 'B', 'A', 'A', 'A', 'A', 'A', 'A', 'Z', 'Z', 'Z', 'Z', 'Z', 'Z', 'Z', 'K', 'K', 'K', 'K', 'K', 'K', 'N', 'N', 'N', 'N', 'N', 'N', 'E', 'E', 'E', 'E', 'E', 'E'])

In [14]: s
Out[14]: array(['E', 'W', 'V', 'S', 'K', 'Z', 'N', 'W', 'C', 'Z', 'B', 'F', 'K', 'T', 'G', 'D', 'E', 'Q', 'Z', 'N', 'K', 'Z', 'O', 'X', 'S', 'A', 'Q', 'Z', 'M', 'H', 'D', 'B', 'H', 'X', 'D', 'P', 'C', 'D', 'N', 'D', 'P', 'C', 'Q', 'X', 'X', 'C', 'R', 'W', 'H', 'G', 'L', 'A', 'U', 'A', 'V', 'V', 'C', 'F', 'X', 'I', 'R', 'A', 'C', 'V', 'B', 'B', 'H', 'K', 'T', 'Z', 'N', 'O', 'J', 'I', 'G', 'U', 'K', 'T', 'X', 'X', 'L', 'V', 'W', 'J', 'W', 'S', 'G', 'C', 'U', 'Y', 'M', 'O', 'A', 'A', 'W', 'O', 'E', 'Q', 'K', 'G'])

Expected behavior
The array should be correctly reversed.