apache / apache/parquet-java

Quoted identifiers in column names

Đang mở
#1,987 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
Component: Java Component: Parquet Priority: Minor Type: enhancement
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ả

Add the ability to quote identifiers for columns in a table. This would allow column names to contain arbitrary characters such as spaces. Hive supports these types of identifiers using backquotes. For example,

create table parquet_table (`Session Token` string) stored as parquetfile;

However, attempting to insert a new row into this table results in an error.

insert into parquet_table values ('1234-45')

org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.IllegalArgumentException: field ended by ';': expected ';' but got 'token' at line 1: optional string Session Token

I would suggest using backquotes in Parquet as well.

**Reporter**: [Michael Styles](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ptkool)

**Note**: *This issue was originally created as [PARQUET-677](https://issues.apache.org/jira/browse/PARQUET-677). 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 tái hiện ví dụ Hive với cột `Session Token` và insert bị lỗi vào `parquet_table`. Truy vết phần xử lý Parquet Java liên quan trong schema và đường dẫn insert; được xem là hoàn tất khi các mã định danh được đặt trong dấu ngoặc kép có chứa khoảng trắng được chấp nhận và insert thành công mà không có lỗi tên trường đã được báo cáo.

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
databases
Loại issue
Tính năng
Độ khó
4/5
Thời gian dự kiến
3-5 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
38/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.