代码之家  ›  专栏  ›  技术社区  ›  Shashi

Alter Table Add Column if Not Present |直线CLI

  •  0
  • Shashi  · 技术社区  · 7 年前

    创建表employee(ename string,eid string);

    Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. Duplicate column name: eid (state=08S01,code=1)
    

    有没有方法可以忽略错误或不尝试添加列(如果已经存在)?

    谢谢 沙希

    0 回复  |  直到 7 年前
    推荐文章