Fix table name with underscore (#10980)

This commit is contained in:
Ayush Shah 2023-04-10 17:11:36 +05:30 committed by GitHub
parent 5563935fbf
commit 02a52b3ddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ def _get_columns(
) -> List[Dict[str, Any]]:
# pylint: disable=protected-access
schema = schema or self._get_default_schema_name(connection)
query = f"SHOW COLUMNS FROM {schema}.{table_name}"
query = f'SHOW COLUMNS FROM {schema}."{table_name}"'
res = connection.execute(sql.text(query), schema=schema, table=table_name)
columns = []