You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@parquet.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/07/23 15:51:00 UTC

[jira] [Updated] (PARQUET-1353) The random data generator used for tests repeats the same value over and over again

     [ https://issues.apache.org/jira/browse/PARQUET-1353?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ASF GitHub Bot updated PARQUET-1353:
------------------------------------
    Labels: pull-request-available  (was: )

> The random data generator used for tests repeats the same value over and over again
> -----------------------------------------------------------------------------------
>
>                 Key: PARQUET-1353
>                 URL: https://issues.apache.org/jira/browse/PARQUET-1353
>             Project: Parquet
>          Issue Type: Bug
>            Reporter: Zoltan Ivanfi
>            Assignee: Zoltan Ivanfi
>            Priority: Minor
>              Labels: pull-request-available
>
> The RandomValues class returns references to its internal buffer as random values. This buffer gets a random value every time a new random value is requested, but since earlier values reference the same internal buffer, they get changed to the same value as well. So even if successive calls return different values each time, the actual list of these values will always consist of a single value repeated multiple times. For example:
> ||n-th call||returned value||accumulated list expected||accumulated list actual||
> |1|6C|6C|6C|
> |2|8F|6C 8F|8F 8F|
> |3|52|6C 8F 52|52 52 52|
> |4|B8|6C 8F 52 B8|B8 B8 B8 B8|



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)