Skip to content

Commit

Permalink
fix(ingest/bigquery): quoting for APPROX_COUNT_DISTINCT in BigQuery (d…
Browse files Browse the repository at this point in the history
  • Loading branch information
mryorik authored and Eric Yomi committed Feb 8, 2023
1 parent d422d15 commit b3b946f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_column_unique_count_patch(self: SqlAlchemyDataset, column: str) -> int:
sa.select(
[
sa.text( # type:ignore
f'APPROX_COUNT_DISTINCT("{sa.column(column)}")'
f"APPROX_COUNT_DISTINCT(`{sa.column(column)}`)"
)
]
).select_from(self._table)
Expand Down

0 comments on commit b3b946f

Please sign in to comment.