我有一个破坏管道分隔符的源文件。我的hive外部表也是用断管分隔符创建的。但是在创建表格后,我看到的分隔符就像是' j'。我也无法从表中查询。
创建语法:
尝试使用ASCII值
PARTITIONED BY (
eventdate date)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '\u00A6'
STORED AS PARQUET
并使用管道
PARTITIONED BY (
eventdate date)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '¦'
STORED AS PARQUET
创建表格后
PARTITIONED BY (
eventdate date)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY 'j'
STORED AS INPUTFORMAT
请帮助建议以上部分。非常感谢。
答案 0 :(得分:0)
您正在使用
PARTITIONED BY (
eventdate date)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '|'
STORED AS PARQUET
而不是
PARTITIONED BY (
eventdate date)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '|'
STORED AS TEXTFILE
可能是因为你告诉蜂巢你的数据存储为镶木地板。如果能解决这个问题,请告诉我