From 7a5b6c837a448f7ede4ef679cac6fd4a6f8babcd Mon Sep 17 00:00:00 2001 From: Ruifeng Zheng Date: Mon, 17 Apr 2023 16:13:00 +0800 Subject: [PATCH] [MINOR][CONNECT][PYTHON] Add missing `super().__init__()` in expressions ### What changes were proposed in this pull request? Add missing `super().__init__()` in expressions ### Why are the changes needed? to make IDEA happy: image ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? existing UT Closes #40818 from zhengruifeng/connect_super. Authored-by: Ruifeng Zheng Signed-off-by: Ruifeng Zheng --- python/pyspark/sql/connect/expressions.py | 3 +++ 1 file changed, 3 insertions(+) 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