Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
cleanup
Signed-off-by: tokoko <togurg14@freeuni.edu.ge>
  • Loading branch information
tokoko committed Apr 6, 2024
commit f3604d0baa7610d5000a9b0ffd7d5a1ec56a79fe
5 changes: 1 addition & 4 deletions sdk/python/feast/on_demand_feature_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,9 +397,8 @@ def transform_arrow(
pa_table: pyarrow.Table,
full_feature_names: bool = False,
) -> pyarrow.Table:
# Apply on demand transformations
if not isinstance(pa_table, pyarrow.Table):
raise TypeError("get_transformed_features_df only accepts pyarrow.Table")
raise TypeError("transform_arrow only accepts pyarrow.Table")
columns_to_cleanup = []
for source_fv_projection in self.source_feature_view_projections.values():
for feature in source_fv_projection.features:
Expand All @@ -419,7 +418,6 @@ def transform_arrow(
)
columns_to_cleanup.append(full_feature_ref)

# Compute transformed values and apply to each result row
df_with_transformed_features: pyarrow.Table = (
self.feature_transformation.transform_arrow(pa_table)
)
Expand All @@ -435,7 +433,6 @@ def transform_arrow(
):
rename_columns[short_name] = long_name
elif not full_feature_names:
# Long name must be in dataframe.
rename_columns[long_name] = short_name

# Cleanup extra columns used for transformation
Expand Down