Skip to content

Commit

Permalink
lint / whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaibbq committed Jul 12, 2023
1 parent bdd5727 commit 61225e0
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions sdks/python/apache_beam/io/gcp/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -753,11 +753,13 @@ def estimate_size(self):
self.bigquery_job_labels))

if job.statistics.totalBytesProcessed is None:
# Some queries may not have access to `totalBytesProcessed` as a result of row-level security
# > BigQuery hides sensitive statistics on all queries against tables with row-level security.
# https://cloud.google.com/bigquery/docs/managing-row-level-security
# https://cloud.google.com/bigquery/docs/best-practices-row-level-security#limit-side-channel-attacks
return None
# Some queries may not have access to `totalBytesProcessed` as a
# result of row-level security.
# > BigQuery hides sensitive statistics on all queries against
# > tables with row-level security.
# See cloud.google.com/bigquery/docs/managing-row-level-security
# and cloud.google.com/bigquery/docs/best-practices-row-level-security
return None

return int(job.statistics.totalBytesProcessed)
else:
Expand Down Expand Up @@ -1111,11 +1113,13 @@ def estimate_size(self):
self.bigquery_job_labels))

if job.statistics.totalBytesProcessed is None:
# Some queries may not have access to `totalBytesProcessed` as a result of row-level security
# > BigQuery hides sensitive statistics on all queries against tables with row-level security.
# https://cloud.google.com/bigquery/docs/managing-row-level-security
# https://cloud.google.com/bigquery/docs/best-practices-row-level-security#limit-side-channel-attacks
return None
# Some queries may not have access to `totalBytesProcessed` as a
# result of row-level security
# > BigQuery hides sensitive statistics on all queries against
# > tables with row-level security.
# See cloud.google.com/bigquery/docs/managing-row-level-security
# and cloud.google.com/bigquery/docs/best-practices-row-level-security
return None

return int(job.statistics.totalBytesProcessed)
else:
Expand Down

0 comments on commit 61225e0

Please sign in to comment.