Skip to content

Commit ebcd957

Browse files
author
Matt Delacour
committed
Rename to_table to to_arrow
Signed-off-by: Matt Delacour <matt.delacour@shopify.com>
1 parent 5a49470 commit ebcd957

9 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎sdk/python/feast/infra/gcp.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def materialize_single_feature_view(
110110
start_date=start_date,
111111
end_date=end_date,
112112
)
113-
table = offline_job.to_table()
113+
table = offline_job.to_arrow()
114114

115115
if feature_view.input.field_mapping is not None:
116116
table = _run_field_mapping(table, feature_view.input.field_mapping)

‎sdk/python/feast/infra/local.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def materialize_single_feature_view(
109109
end_date=end_date,
110110
config=config,
111111
)
112-
table = offline_job.to_table()
112+
table = offline_job.to_arrow()
113113

114114
if feature_view.input.field_mapping is not None:
115115
table = _run_field_mapping(table, feature_view.input.field_mapping)

‎sdk/python/feast/infra/offline_stores/bigquery.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def _block_until_done():
275275
print(f"Done writing to '{job_config.destination}'.")
276276
return str(job_config.destination)
277277

278-
def to_table(self) -> pyarrow.Table:
278+
def to_arrow(self) -> pyarrow.Table:
279279
return self.client.query(self.query).to_arrow()
280280

281281

‎sdk/python/feast/infra/offline_stores/file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def to_df(self):
3838
df = self.evaluation_function()
3939
return df
4040

41-
def to_table(self):
41+
def to_arrow(self):
4242
# Only execute the evaluation function to build the final historical retrieval dataframe at the last moment.
4343
df = self.evaluation_function()
4444
return pyarrow.Table.from_pandas(df)

‎sdk/python/feast/infra/offline_stores/offline_store.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def to_df(self) -> pd.DataFrame:
3333
pass
3434

3535
@abstractmethod
36-
def to_table(self) -> pyarrow.Table:
36+
def to_arrow(self) -> pyarrow.Table:
3737
"""Return dataset as pyarrow Table synchronously"""
3838
pass
3939

‎sdk/python/tensorflow_metadata/proto/v0/path_pb2.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sdk/python/tensorflow_metadata/proto/v0/schema_pb2.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sdk/python/tensorflow_metadata/proto/v0/statistics_pb2.py‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sdk/python/tests/test_historical_retrieval.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def test_historical_features_from_bigquery_sources(
461461
check_dtype=False,
462462
)
463463

464-
table_from_sql_entities = job_from_sql.to_table()
464+
table_from_sql_entities = job_from_sql.to_arrow()
465465
assert_frame_equal(
466466
actual_df_from_sql_entities, table_from_sql_entities.to_pandas()
467467
)
@@ -546,7 +546,7 @@ def test_historical_features_from_bigquery_sources(
546546
.reset_index(drop=True),
547547
check_dtype=False,
548548
)
549-
table_from_df_entities = job_from_df.to_table()
549+
table_from_df_entities = job_from_df.to_arrow()
550550
assert_frame_equal(
551551
actual_df_from_df_entities, table_from_df_entities.to_pandas()
552552
)

0 commit comments

Comments
 (0)