fix(bigquery-legacy): Fix for TypeError related failures in legacy plugin (#6806)

Co-authored-by: John Joyce <john@acryl.io>
This commit is contained in:
Monica Senapati 2022-12-19 15:28:25 -06:00 committed by GitHub
parent 47be95689e
commit 5c366205f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -796,7 +796,7 @@ class BigQuerySource(SQLAlchemySource):
# Compat with sqlalchemy 1.4 Row type.
row = row._asdict()
if row:
return BigQueryPartitionColumn(**row.items())
return BigQueryPartitionColumn(**dict(row.items()))
return None
def get_shard_from_table(self, table: str) -> Tuple[str, Optional[str]]: