pabloem commented on code in PR #17487:
URL: https://github.com/apache/beam/pull/17487#discussion_r862318497
##########
sdks/python/apache_beam/io/gcp/gcsio.py:
##########
@@ -155,7 +156,10 @@ def __init__(self, storage_client=None):
credentials=auth.get_service_credentials(),
get_credentials=False,
http=get_new_http(),
- response_encoding='utf8')
+ response_encoding='utf8',
Review Comment:
added for BQ
##########
sdks/python/apache_beam/io/gcp/gcsio.py:
##########
@@ -155,7 +156,10 @@ def __init__(self, storage_client=None):
credentials=auth.get_service_credentials(),
get_credentials=False,
http=get_new_http(),
- response_encoding='utf8')
+ response_encoding='utf8',
+ additional_http_headers={
+ "User-Agent": "apache-beam-%s" % apache_beam.__version__
+ })
Review Comment:
added tests for BQ and GCS
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]