1

通过直线运行我的 HiveQL 时,我看到一个非常奇怪的错误:

Error:  (state=,code=0)
Error:  (state=,code=0)
Aborting command set because "force" is false and command failed: "create table some_database.some_table..." 

我的查询非常复杂,使用 UNIONS 和转换,但是当我使用 Hive 客户端提交它时它运行良好。它看起来像这样:

create table some_database.some_table
stored as rcfile
as select * from (

  from some_other_db.table_1 
  select transform (*) 
  using "hdfs:///some/transform/script.py" 
  as ( 
    some_field_1 string, 
    some_field_2 double
  )

  union all 

  from some_other_db.table_2 
  select transform (*) 
  using "hdfs:///some/transform/script.py" 
  as ( 
    some_field_1 string, 
    some_field_2 double
  ) 

  union all 

  from some_other_db.table_3 
  select transform (*) 
  using "hdfs:///some/transform/script.py" 
  as ( 
    some_field_1 string, 
    some_field_2 double
  ) 

) all_unions
;

我在用着:

  • CDH 4.3.0-1
  • 蜂巢 0.10.0-cdh4.3.0
  • 直线版本 0.10.0-cdh4.3.0
4

0 回答 0