From 61225e0d5b906bf9714fa878b5ff9a4a7cb396ee Mon Sep 17 00:00:00 2001 From: Dan Hansen Date: Wed, 12 Jul 2023 14:00:50 -0700 Subject: [PATCH] lint / whitespace --- sdks/python/apache_beam/io/gcp/bigquery.py | 24 +++++++++++++--------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/sdks/python/apache_beam/io/gcp/bigquery.py b/sdks/python/apache_beam/io/gcp/bigquery.py index a3523d879ad7..21181a81d3ba 100644 --- a/sdks/python/apache_beam/io/gcp/bigquery.py +++ b/sdks/python/apache_beam/io/gcp/bigquery.py @@ -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: @@ -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: