Use original Client's client_info
in _ensure_bqstorage_client
to create BigQueryReadClient
#1961
Labels
api: bigquery
Issues related to the googleapis/python-bigquery API.
Problem
If I set the
user_agent
in theclient_info
in a BigQueryClient, the resultant storage client from_ensure_bqstorage_client
does not have the user agent I set.This is visible in the code here:
Solution
For
_ensure_bqstorage_client
to default to using the original client'sclient_info
if noclient_info
is provided in the params.The only part of the
client_info
that I really need in both clients is theuser_agent
, so alternatively I would be fully satisfied if just the user agent were propagated to the storage client.Alternatives
For now, I believe I will have to manually create the bqstorage client with my own
client_info
.Additional context
The text was updated successfully, but these errors were encountered: