Skip to content

Commit 71fa69d

Browse files
add validation to bq source
1 parent 6e53541 commit 71fa69d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bigframes/core/bq_data.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,11 @@ class BigqueryDataSource:
8383
This should not be modified once defined, as all attributes contribute to the default ordering.
8484
"""
8585

86+
def __post_init__(self):
87+
assert [field.name for field in self.table.physical_schema] == list(
88+
self.schema.names
89+
)
90+
8691
table: GbqTable
8792
schema: bigframes.core.schema.ArraySchema
8893
at_time: typing.Optional[datetime.datetime] = None

0 commit comments

Comments
 (0)