使用以下命令在配置单元中创建表,但发生错误。无法在Hive中为csv文件创建表
CREATE TABLE TestData (id1 int, id2 int, id3 int, id4 String) ROW FORMAT DELIMITED FIELDS TERMINATED BY ‘,’ stored as textfile;
错误
FAILED: ParseException line 1:106 mismatched input ',' expecting StringLiteral near 'BY' in table row format's field separator
我已经试过 '\ 054' 而不是 '',但没有工作。
问题的最可能的原因是“”是不正确的 –