Impala 可以用中文列名创建一个 table 吗?
Can Impala create a table with Chinese column names?
我尝试创建一个table,在Impala-Shell中有中文列名,但似乎Impala不接受这样的DDL。
sql 是这样的:
create table aa(`编号` string);
而Impala-shell会抱怨编号
是无效的列名。
我也绑定了双引号或者单引号,都没用。
但是 Spark SQL 和 Hive SQL 接受这个 DDL...
我是不是做错了什么,还是Impala就是这样工作的?
P.S。我正在使用 Impala CHD 5.8.0
没有
文档对此非常清楚。
- An identifier must start with an alphabetic character. The remainder can contain any combination of alphanumeric characters and underscores. Quoting the identifier with backticks has no effect on the allowed characters in the name.
- An identifier can contain only ASCII characters.
https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_identifiers.html#identifiers
我尝试创建一个table,在Impala-Shell中有中文列名,但似乎Impala不接受这样的DDL。
sql 是这样的:
create table aa(`编号` string);
而Impala-shell会抱怨编号
是无效的列名。
我也绑定了双引号或者单引号,都没用。
但是 Spark SQL 和 Hive SQL 接受这个 DDL...
我是不是做错了什么,还是Impala就是这样工作的?
P.S。我正在使用 Impala CHD 5.8.0
没有
文档对此非常清楚。
- An identifier must start with an alphabetic character. The remainder can contain any combination of alphanumeric characters and underscores. Quoting the identifier with backticks has no effect on the allowed characters in the name.
- An identifier can contain only ASCII characters.
https://www.cloudera.com/documentation/enterprise/5-8-x/topics/impala_identifiers.html#identifiers