2017-04-07 56 views
1

我用下面的Vertica的版本「Vertica的分析數據庫v7.1.1-0」,我嘗試將數據從平面格式的文件複製到表使用以下查詢:Vertica的木地板格式

COPY temp.sessions_parquet FROM '/dbadmin/vertica-import/parquet/*' ON ANY NODE PARQUET; 

我已經創建表以下DDL:

CREATE TABLE temp.sessions_parquet (c0 VARCHAR, c1 VARCHAR, c2 VARCHAR, c3 VARCHAR, c4 VARCHAR, c5 VARCHAR, c6 VARCHAR, c7 VARCHAR, c8 VARCHAR, c9 VARCHAR, c10 VARCHAR, c11 VARCHAR, c12 VARCHAR, c13 VARCHAR, c14 VARCHAR, c15 VARCHAR, c16 VARCHAR, c17 VARCHAR, c18 VARCHAR, c19 VARCHAR, c20 VARCHAR, c21 VARCHAR, c22 VARCHAR, c23 VARCHAR, c24 VARCHAR, c25 VARCHAR, c26 VARCHAR, c27 VARCHAR, c28 VARCHAR, c29 VARCHAR, c30 VARCHAR, c31 VARCHAR, c32 VARCHAR, c33 VARCHAR, c34 VARCHAR, c35 VARCHAR, c36 VARCHAR, c37 VARCHAR, c38 VARCHAR, c39 VARCHAR, c40 VARCHAR, c41 VARCHAR, c42 VARCHAR, c43 VARCHAR, c44 VARCHAR, c45 VARCHAR, c46 VARCHAR, c47 VARCHAR, c48 VARCHAR, c49 VARCHAR, c50 VARCHAR, c51 VARCHAR, c52 VARCHAR, c53 VARCHAR, c54 VARCHAR, c55 VARCHAR, c56 VARCHAR, c57 VARCHAR); 

鑲木格式的文件是Vertica的節點上已經在以下位置:

/dbadmin/vertica-import/parquet/part-r-00000.snappy.parquet 

當我嘗試執行以下命令:

COPY temp.sessions_parquet FROM '/dbadmin/vertica-import/parquet/*' ON ANY NODE PARQUET; 

我收到以下錯誤:

An error occurred when executing the SQL command: COPY temp.sessions_parquet FROM '/dbadmin/vertica-import/parquet/*' ON ANY NODE PARQUET

[Vertica]VJDBC ERROR: Syntax error at or near "PARQUET" [SQL State=42601, DB Errorcode=4856] 1 statement failed.

能否請你幫忙,告訴我如何導入數據?

+0

我想你需要升級到版本7.2,至少 – mustaccio

回答

相關問題