This is an automated email from the ASF dual-hosted git repository.

jrmccluskey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git


The following commit(s) were added to refs/heads/master by this push:
     new b55a0aba7ce Warn on failed import of internal BQ client for easier 
debugging (#40082)
b55a0aba7ce is described below

commit b55a0aba7ce5352e3f06239df6ebaee7922145d2
Author: Jack McCluskey <[email protected]>
AuthorDate: Tue Sep 15 15:07:58 2026 +0000

    Warn on failed import of internal BQ client for easier debugging (#40082)
---
 sdks/python/apache_beam/io/gcp/internal/clients/bigquery/__init__.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git 
a/sdks/python/apache_beam/io/gcp/internal/clients/bigquery/__init__.py 
b/sdks/python/apache_beam/io/gcp/internal/clients/bigquery/__init__.py
index ec7df8aa128..bafe94a1b01 100644
--- a/sdks/python/apache_beam/io/gcp/internal/clients/bigquery/__init__.py
+++ b/sdks/python/apache_beam/io/gcp/internal/clients/bigquery/__init__.py
@@ -18,6 +18,7 @@
 """Common imports for generated bigquery client library."""
 # pylint:disable=wildcard-import
 
+import logging
 import pkgutil
 
 # Protect against environments where apitools library is not available.
@@ -28,6 +29,9 @@ try:
   from apache_beam.io.gcp.internal.clients.bigquery.bigquery_v2_client import *
   from apache_beam.io.gcp.internal.clients.bigquery.bigquery_v2_messages 
import *
 except ImportError:
+  logging.warning(
+      "apitools not found, and bigquery client libraries are not "
+      "available despite the import not raising an ImportError.")
   pass
 # pylint: enable=wrong-import-order, wrong-import-position
 

Reply via email to