Pārlūkot izejas kodu

HUE-6883 [metastore] Allow deletion of table comments

Johan Ahlen 8 gadi atpakaļ
vecāks
revīzija
496d627
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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())