Skip to content

Commit

Permalink
code changes for the transformations as well
Browse files Browse the repository at this point in the history
  • Loading branch information
yogesh266 committed Aug 9, 2023
1 parent d8e766e commit 66da73d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def get_time_version_data(
version_number: int = None,
timestamp: datetime = None,
):
split_db_name = delta_table_name.split('.')
split_db_name = delta_table_name.split(".")

# Get the Delta table path
delta_table_path = (
Expand Down
7 changes: 6 additions & 1 deletion ads/feature_store/feature_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,11 @@ def with_transformation_id(self, transformation_id: str) -> "FeatureGroup":
FeatureGroup
The FeatureGroup instance (self)
"""

# Initialize the empty dictionary as transformation arguemnts if not specified
if not self.transformation_kwargs:
self.with_transformation_kwargs()

return self.set_spec(self.CONST_TRANSFORMATION_ID, transformation_id)

def _with_lifecycle_state(self, lifecycle_state: str) -> "FeatureGroup":
Expand Down Expand Up @@ -1050,7 +1055,7 @@ def as_of(
"""
self.check_resource_materialization()

#validate_delta_format_parameters(timestamp, version_number)
# validate_delta_format_parameters(timestamp, version_number)
target_table = self.target_delta_table()

return self.spark_engine.get_time_version_data(
Expand Down

0 comments on commit 66da73d

Please sign in to comment.