apache / apache/parquet-java

Quoted identifiers in column names

Open
#1,987 3 comments 0 reactions 0 assignees View on GitHub
Component: Java Component: Parquet Priority: Minor Type: enhancement
Dominant language
Java
Stars
3.1k
Forks
1.6k
Avg merge
3d 12h
Merged PRs (30d)
33

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.