Skip to content

Commit

Permalink
Add to_table() in integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Delacour <matt.delacour@shopify.com>
  • Loading branch information
Matt Delacour committed Jun 29, 2021
1 parent fa5551b commit c378307
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sdk/python/tests/test_historical_retrieval.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,11 @@ def test_historical_features_from_bigquery_sources(
check_dtype=False,
)

table_from_sql_entities = job_from_sql.to_table()
assert_frame_equal(
actual_df_from_sql_entities, table_from_sql_entities.to_pandas()
)

timestamp_column = (
"e_ts"
if infer_event_timestamp_col
Expand Down Expand Up @@ -541,3 +546,7 @@ def test_historical_features_from_bigquery_sources(
.reset_index(drop=True),
check_dtype=False,
)
table_from_df_entities = job_from_df.to_table()
assert_frame_equal(
actual_df_from_df_entities, table_from_df_entities.to_pandas()
)

0 comments on commit c378307

Please sign in to comment.