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
add doc
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
  • Loading branch information
HaoXuAI committed Mar 25, 2025
commit d8b77323e9e2c4f8f9ab1fa7e1f5d4f678ac84f0
3 changes: 2 additions & 1 deletion sdk/python/feast/transformation/spark_transformation.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@


class SparkTransformation(Transformation):
"""
r"""
SparkTransformation can be used to define a transformation using a Spark UDF or SQL query.
The current spark session will be used or a new one will be created if not available.
E.g.:
Expand All @@ -29,6 +29,7 @@ class SparkTransformation(Transformation):
def remove_extra_spaces_udf(df: pd.DataFrame) -> pd.DataFrame:
return df.assign(name=df['name'].str.replace('\s+', ' '))
"""

def __new__(
cls,
mode: Union[TransformationMode, str],
Expand Down