MCPcopy Create free account
hub / github.com/apache/impala / get_tables

Method get_tables

tests/common/impala_connection.py:649–655  ·  view source on GitHub ↗

Trigger the GetTables() HS2 request on the given database (None means all dbs). Returns a list of (catalogName, dbName, tableName, tableType, tableComment).

(self, database=None)

Source from the content-addressed store, hash-verified

647 raise
648
649 def get_tables(self, database=None):
650 """Trigger the GetTables() HS2 request on the given database (None means all dbs).
651 Returns a list of (catalogName, dbName, tableName, tableType, tableComment).
652 """
653 self.log_client("getting tables for database: {0}".format(database))
654 self.default_cursor().get_tables(database_name=database)
655 return self.default_cursor().fetchall()
656
657 def close_query(self, operation_handle, fetch_profile_after_close=False):
658 self.log_handle(operation_handle, 'closing query for operation')

Callers 3

test_passthrough_apisMethod · 0.45

Calls 3

default_cursorMethod · 0.95
log_clientMethod · 0.45
formatMethod · 0.45

Tested by 3

test_passthrough_apisMethod · 0.36