Explorar o código

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

Romain Rigaux %!s(int64=8) %!d(string=hai) anos
pai
achega
4b5f48d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)