parquet-avro logical type support broke ability to use avro reflection with generics.
- 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ả
Impacts 1.9.0 and 1.8.2.
Assuming the fieldClass is a concrete class (which it is for all of the logical types) is an incorrect assumption when generics are used.
Statistics {
T field1
T field2
}
SetStatistics extends Statistics> {}
Solution is to check if the fieldClass is abstract/interface/raw object.
**Reporter**: [Evan McClain](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=aeroevan) / @aeroevan
**Assignee**: [Evan McClain](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=aeroevan) / @aeroevan
#### Original Issue Attachments:
- [0001-Do-not-pass-knownClass-if-it-is-abstract-interface.patch](https://issues.apache.org/jira/secure/attachment/12850491/0001-Do-not-pass-knownClass-if-it-is-abstract-interface.patch)
**Note**: *This issue was originally created as [PARQUET-856](https://issues.apache.org/jira/browse/PARQUET-856). 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
Sử dụng các ví dụ Statistics và SetStatistics extends Statistics> để tái hiện lỗi reflection của Avro. Kiểm tra cách parquet-avro xử lý logical type xung quanh fieldClass và so sánh với patch đính kèm; hoàn tất khi reflection generic hoạt động mà không truyền một lớp abstract, interface hoặc Object thô làm lớp đã biế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
- data-engineering
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100