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

Method describe_table

tests/comparison/db_connection.py:419–429  ·  view source on GitHub ↗

Return a Table with table and col names always in lowercase.

(self, table_name)

Source from the content-addressed store, hash-verified

417 return table
418
419 def describe_table(self, table_name):
420 '''Return a Table with table and col names always in lowercase.'''
421 describe_rows = self.execute_and_fetchall(self.make_describe_table_sql(table_name))
422 table = self.create_table_from_describe(table_name, describe_rows)
423 # IMPALA-14398: Commenting this because, testing with Python 3.8, it hit
424 # dbm.error: db type could not be determined
425 # Commenting it does not affect any existing infra tests.
426 # Need to revisit if persist_unique_col_metadata and load_unique_col_metadata
427 # is still needed.
428 # self.load_unique_col_metadata(table)
429 return table
430
431 def make_describe_table_sql(self, table_name):
432 return 'DESCRIBE ' + table_name

Callers 13

index_tableMethod · 0.95
migrate_dbFunction · 0.45
test_table_modelMethod · 0.45
generate_DML_queriesFunction · 0.45
generate_random_queriesFunction · 0.45
prepare_databaseFunction · 0.45
reset_databasesFunction · 0.45

Calls 3

execute_and_fetchallMethod · 0.95

Tested by 3

test_table_modelMethod · 0.36