Skip to content

Commit

Permalink
spark transformation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yogesh266 committed Sep 30, 2023
1 parent cc3fb53 commit dc4c9de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ads/feature_store/common/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class TransformationMode(Enum):

SQL = "sql"
PANDAS = "pandas"
SPARK = "spark"


class FilterOperators(Enum):
Expand Down
2 changes: 1 addition & 1 deletion ads/feature_store/common/utils/transformation_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def apply_transformation(
temporary_table_view, **transformation_kwargs_dict
)
)
elif transformation.transformation_mode == TransformationMode.PANDAS.value:
elif transformation.transformation_mode in [TransformationMode.PANDAS.value, TransformationMode.SPARK.value]:
transformed_data = transformation_function_caller(
dataframe, **transformation_kwargs_dict
)
Expand Down

0 comments on commit dc4c9de

Please sign in to comment.