在Hive上创建一个表

时间:2016-07-12 09:05:39

标签: sql hadoop hive bigdata

CREATE TABLE DowJones (quarter int, stock string, StockDate date, open double, high double, low double, close double, volume double, percent_change_price double, percent_change_volume_over_last_wk double, previous_weeks_volume double, next_weeks_open double,  next_weeks_close double, percent_change_next_weeks_price double, days_to_next_dividend int, percent_return_next_dividend double) row format delimited fields terminated by ‘,’;

我收到错误:

Error while compiling statement: FAILED: ParseException line 1:431 mismatched input ',' expecting StringLiteral near 'by' in table row format's field separator [ERROR_STATUS]

SQL的新手,如果这是一个非常明显的修复,请提前道歉。

1 个答案:

答案 0 :(得分:0)

试试这个......

row format delimited fields terminated by '\;'

告诉我们