Ver código fonte

HUE-6373 [impala] Inject table comment into the table API

Romain Rigaux 8 anos atrás
pai
commit
4b5f48d55f
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      apps/beeswax/src/beeswax/api.py

+ 1 - 0
apps/beeswax/src/beeswax/api.py

@@ -110,6 +110,7 @@ def _autocomplete(db, database=None, table=None, column=None, nested=None):
     elif column is None:
       table = db.get_table(database, table)
       response['hdfs_link'] = table.hdfs_link
+      response['comment'] = table.comment
 
       cols_extended = massage_columns_for_json(table.cols)