liferoad commented on code in PR #36393:
URL: https://github.com/apache/beam/pull/36393#discussion_r2407611962
##########
sdks/python/apache_beam/io/gcp/bigquery.py:
##########
@@ -2764,6 +2764,9 @@ def expand(self, input):
class ConvertToBeamRows(PTransform):
def __init__(self, schema, dynamic_destinations):
+ if not isinstance(schema,
+ (bigquery.TableSchema, bigquery.TableFieldSchema)):
+ schema = bigquery_tools.get_bq_tableschema(schema)
Review Comment:
or `beam_row_from_dict` is used elsewhere, so we should keep it. Just a
thought.
--
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]