Return a Table with table and col names always in lowercase.
(self, table_name)
| 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 |