Quoted identifiers in column names
- 主要语言
- Java
- 星标
- 3.1k
- 派生
- 1.6k
- 平均合并
- 3 天 12 小时
- 30 天内合并 PR
- 33
描述
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.*
贡献指南
这个仓库没有索引到贡献指南
调研方向
首先复现带有 `Session Token` 列的 Hive 示例,以及向 `parquet_table` 执行失败的 insert。追踪 schema 和 insert 路径中涉及的 Parquet Java 处理;完成的标准是接受包含空格的带引号标识符,并且 insert 成功且不再出现报告的字段名称错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 38/100