You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ru...@apache.org on 2023/04/17 08:13:48 UTC
[spark] branch master updated: [MINOR][CONNECT][PYTHON] Add missing `super().__init__()` in expressions
This is an automated email from the ASF dual-hosted git repository.
ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 7a5b6c837a4 [MINOR][CONNECT][PYTHON] Add missing `super().__init__()` in expressions
7a5b6c837a4 is described below
commit 7a5b6c837a448f7ede4ef679cac6fd4a6f8babcd
Author: Ruifeng Zheng <ru...@apache.org>
AuthorDate: Mon Apr 17 16:13:00 2023 +0800
[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:
<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 #40818 from zhengruifeng/connect_super.
Authored-by: Ruifeng Zheng <ru...@apache.org>
Signed-off-by: Ruifeng Zheng <ru...@apache.org>
---
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 1c332e56226..8ed365091fc 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 @@ class CaseWhen(Expression):
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 @@ class CommonInlineUserDefinedFunction(Expression):
deterministic: bool = False,
arguments: Sequence[Expression] = [],
):
+ super().__init__()
self._function_name = function_name
self._deterministic = deterministic
self._arguments = arguments
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org