【问题标题】:Error while compiling statement: FAILED: ParseException line 10:0 cannot recognize input near 'partitioned' 'by' '(' in serde properties specification编译语句时出错:FAILED: ParseException line 10:0 cannot identify input near 'partitioned' 'by' '(' in serde properties specification
【发布时间】:2018-06-01 08:39:16
【问题描述】:
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 line 10:0 cannot identify input near 'partitioned' 'by' '(' in serde properties specification

我收到此错误,请建议

【问题讨论】:

    标签: hive


    【解决方案1】:

    partitioned by 位于 row 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 ','  
    ;  
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-11-12
      • 2015-07-14
      • 1970-01-01
      • 1970-01-01
      • 2019-12-07
      • 2021-01-24
      • 2019-10-21
      相关资源
      最近更新 更多