Skip to content

Commit

Permalink
[MINOR][CONNECT][PYTHON] Add missing super().__init__() in expressions
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?
Add missing `super().__init__()` in expressions

### Why are the changes needed?
to make IDEA happy:
<img width="418" alt="image" src="https://user-images.githubusercontent.com/7322292/232402659-20e7f740-7816-495f-967f-d90c3ac7eedc.png">

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
existing UT

Closes apache#40818 from zhengruifeng/connect_super.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
  • Loading branch information
zhengruifeng committed Apr 17, 2023
1 parent 0457219 commit 7a5b6c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/pyspark/sql/connect/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a5b6c8

Please sign in to comment.