diff --git a/python/pyspark/sql/connect/expressions.py b/python/pyspark/sql/connect/expressions.py index 1c332e562268d..8ed365091fc7f 100644 --- a/python/pyspark/sql/connect/expressions.py +++ b/python/pyspark/sql/connect/expressions.py @@ -106,6 +106,7 @@ class CaseWhen(Expression): def __init__( self, branches: Sequence[Tuple[Expression, Expression]], else_value: Optional[Expression] ): + super().__init__() assert isinstance(branches, list) for branch in branches: @@ -142,6 +143,7 @@ def __repr__(self) -> str: class ColumnAlias(Expression): def __init__(self, parent: Expression, alias: Sequence[str], metadata: Any): + super().__init__() self._alias = alias self._metadata = metadata @@ -649,6 +651,7 @@ def __init__( deterministic: bool = False, arguments: Sequence[Expression] = [], ): + super().__init__() self._function_name = function_name self._deterministic = deterministic self._arguments = arguments