famous-florist-7218
08/10/2022, 11:28 AMbigquery.py
, I found that the base_query will be failed with Syntax error: Missing whitespace between literal and alias
whenever the profiling is enabled.
• It seems like {schema}.TABLES should be put into the angled apostraphes (``{schema}.__TABLES__``) because of BigQuery Syntax Rule.
• Should I raise this point as a bug?
@staticmethod
def get_all_schema_tables_query(schema: str) -> str:
base_query = (
f"SELECT "
f"table_id, "
f"size_bytes, "
f"last_modified_time, "
f"row_count, "
f"FROM {schema}.__TABLES__"
)
return base_query
P/s: Please take a look at the attached screenshot for more detail.gray-shoe-75895
08/10/2022, 10:23 PMdazzling-judge-80093
08/11/2022, 5:04 PM__TABLES__
system table.
I will need to check how we pass in project_id,dataset and I think we might need to quote thosechilly-spring-43918
09/19/2022, 8:16 AMfamous-florist-7218
10/07/2022, 11:07 AMchilly-spring-43918
10/07/2022, 11:12 AMhappy-twilight-91685
12/13/2022, 1:11 AMfamous-florist-7218
12/13/2022, 1:37 AMhappy-twilight-91685
12/13/2022, 4:10 AMv0.8.44
famous-florist-7218
12/13/2022, 4:39 AMv0.8.45
biquery-beta was introduced, it has many improvements including this bug-fixing. Just upgrade to the latest version v0.9.3
.
https://github.com/datahub-project/datahub/releases/tag/v0.8.45