浏览代码

HUE-6883 [metastore] Allow deletion of table comments

Johan Ahlen 8 年之前
父节点
当前提交
496d627
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      apps/beeswax/src/beeswax/server/dbms.py

+ 1 - 1
apps/beeswax/src/beeswax/server/dbms.py

@@ -230,7 +230,7 @@ class HiveServer2Dbms(object):
     if new_table_name:
       table_name = new_table_name
       hql += ' RENAME TO `%s`' % table_name
-    elif comment:
+    elif comment is not None:
       hql += " SET TBLPROPERTIES ('comment' = '%s')" % comment
     elif tblproperties:
       hql += " SET TBLPROPERTIES (%s)" % ' ,'.join("'%s' = '%s'" % (k, v) for k, v in tblproperties.items())