【发布时间】:2019-10-03 23:35:02
【问题描述】:
例如,当使用 Parquet 格式时,我希望能够指定压缩方案 (("parquet.compression"="SNAPPY"))。运行此查询:
CREATE TABLE table_a_copy
STORED AS PARQUET
TBLPROPERTIES("parquet.compression"="SNAPPY")
AS
SELECT * FROM table_a
返回错误:
Error: Error while compiling statement: FAILED: ParseException line 1:69 cannot recognize input near 'parquet' '.' 'compression' in table properties list (state=42000,code=40000)
没有TBLPROPERTIES 的相同查询可以正常工作。
这类似于这个问题:Create hive table using "as select" or "like" and also specify delimiter。但我不知道如何让TBLPROPERTIES 使用这种方法。我正在使用 Hive 1.1。
【问题讨论】:
-
您好,table_a 是什么类型的表?是镶木地板吗?
-
@F.Lazarescu:就这个问题而言,我宁愿获得一个独立于源表的解决方案。
标签: hive