Browse Source

HUE-6883 [metastore] Allow deletion of table comments

Johan Ahlen 8 years ago
parent
commit
496d627
1 changed files with 1 additions and 1 deletions
  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())