编译语句时出错:FAILED:ParseException行10:0无法识别'partitioned''附近的输入''('在serde属性规范中

时间:2017-12-18 23:41:20

标签: hive

Create table d_rel_t.Acty_dim_Csv(acty_cde           int,
                                  acty_nm            string,
                                  acty_typ           string,
                                  gdgs_ind           string, 
                                  dly_growth_ind     string,
                                  grc_ind            string, 
                                  acty_txn_lob_cde   string,
                                  txn_prd_seg_cde    string
                                 ) 
Row format delimited  fields terminated by ','  
partitioned by(acty_ctgry_cde string);  
  

编译语句时出错:FAILED:ParseException第10:0行无法识别'partitioned''附近的输入''('在serde属性规范中

我收到此错误,请建议

1 个答案:

答案 0 :(得分:0)

partitioned byrow format规范之前发布。

create table d_rel_t.Acty_dim_Csv(acty_cde           int,
                                  acty_nm            string,
                                  acty_typ           string,
                                  gdgs_ind           string, 
                                  dly_growth_ind     string,
                                  grc_ind            string, 
                                  acty_txn_lob_cde   string,
                                  txn_prd_seg_cde    string
                                 ) 
partitioned by(acty_ctgry_cde string)
row format delimited fields terminated by ','  
;