Skip to content

Commit

Permalink
fix(ingest/bigquery): quote string constants in query (#7694)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayurinehate authored Mar 27, 2023
1 parent a62889b commit 279f38a
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class BigqueryQuery:
table_name) as p on
t.table_name = p.table_name
WHERE
table_type in ({BigqueryTableType.BASE_TABLE}, {BigqueryTableType.EXTERNAL})
table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}')
{{table_filter}}
order by
table_schema ASC,
Expand All @@ -216,7 +216,7 @@ class BigqueryQuery:
and t.TABLE_NAME = tos.TABLE_NAME
and tos.OPTION_NAME = "description"
WHERE
table_type in ({BigqueryTableType.BASE_TABLE}, {BigqueryTableType.EXTERNAL})
table_type in ('{BigqueryTableType.BASE_TABLE}', '{BigqueryTableType.EXTERNAL}')
{{table_filter}}
order by
table_schema ASC,
Expand Down Expand Up @@ -244,7 +244,7 @@ class BigqueryQuery:
and t.TABLE_NAME = tos.TABLE_NAME
and tos.OPTION_NAME = "description"
WHERE
table_type in ({BigqueryTableType.VIEW}, {BigqueryTableType.MATERIALIZED_VIEW})
table_type in ('{BigqueryTableType.VIEW}', '{BigqueryTableType.MATERIALIZED_VIEW}')
order by
table_schema ASC,
table_name ASC
Expand All @@ -266,7 +266,7 @@ class BigqueryQuery:
and t.TABLE_NAME = tos.TABLE_NAME
and tos.OPTION_NAME = "description"
WHERE
table_type in ({BigqueryTableType.VIEW}, {BigqueryTableType.MATERIALIZED_VIEW})
table_type in ('{BigqueryTableType.VIEW}', '{BigqueryTableType.MATERIALIZED_VIEW}')
order by
table_schema ASC,
table_name ASC
Expand Down

0 comments on commit 279f38a

Please sign in to comment.