当前位置:   article > 正文

hive orc创建出错create as select_unknown primitive type void

unknown primitive type void
If you try to use create-table-as-select (CTAS) statement and create a ORC File format based table, then you can't use NULL as a column value in select clause
  1. CREATE TABLE empty (x int);
  2. CREATE TABLE orc_table_with_null
  3. STORED AS ORC
  4. AS
  5. SELECT
  6. x,
  7. null
  8. FROM empty;
在create table stored as ORC格式时,在create as select语句中select 的字段不能显示的给null值
Error:
347084 [main] ERROR hive.ql.exec.DDLTask - org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.IllegalArgumentException: Unknown primitive type VOID
at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:643)
at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:4242)
at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:285)
参考: https://issues.apache.org/jira/browse/HIVE-11217
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/656471
推荐阅读
相关标签
  

闽ICP备14008679号