Procházet zdrojové kódy

[core] Added tables meta to the Hive autocomplete

Enrico Berti před 10 roky
rodič
revize
ea389370e1
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      apps/beeswax/src/beeswax/api.py

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

@@ -104,6 +104,7 @@ def _autocomplete(db, database=None, table=None, column=None, nested=None):
       response['databases'] = db.get_databases()
     elif table is None:
       response['tables'] = db.get_tables(database=database)
+      response['tables_meta'] = db.get_tables_meta(database=database)
     elif column is None:
       t = db.get_table(database, table)
       response['hdfs_link'] = t.hdfs_link