apache / apache/parquet-java

The random data generator used for tests repeats the same value over and over again

Đang mở
#2,199 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Component: Java Component: Parquet Priority: Minor Type: bug
Ngôn ngữ chính
Java
Star
3.1k
Fork
1.6k
Merge trung bình
3 ngày 12 giờ
Pull request đã merge (30 ngày)
33

Mô tả

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|
|

**Reporter**: [Zoltan Ivanfi](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=zi) / @zivanfi
#### PRs and other links:
- [GitHub Pull Request #504](https://github.com/apache/parquet-mr/pull/504)

**Note**: *This issue was originally created as [PARQUET-1353](https://issues.apache.org/jira/browse/PARQUET-1353). Please see the [migration documentation](https://issues.apache.org/jira/browse/PARQUET-2502) for further details.*

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Hướng nghiên cứu

Bắt đầu bằng cách xác định lớp RandomValues và đọc cách lớp này trả về bộ đệm nội bộ. Xem lại Pull Request #504 để nắm phần công việc hiện có, sau đó xác minh rằng các giá trị ngẫu nhiên đã tích lũy vẫn khác nhau giữa các lần gọi liên tiếp và các bài kiểm thử liên quan đều đạt.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
java
Lĩnh vực
testing
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
30/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.