Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Oct 19, 2022

What changes were proposed in this pull request?

fix test_connect_column_expressions.py

Why are the changes needed?

master is broken

ERROR [0.006s]: test_column_expressions (pyspark.sql.tests.connect.test_connect_column_expressions.SparkConnectColumnExpressionSuite)
Test a more complex combination of expressions and their translation into
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/__w/spark/spark/python/pyspark/sql/tests/connect/test_connect_column_expressions.py", line 80, in test_column_expressions
    mod_fun.unresolved_function.arguments[0].unresolved_attribute.parts, ["id"]
AttributeError: parts

Does this PR introduce any user-facing change?

No

How was this patch tested?

test locally

@zhengruifeng
Copy link
Contributor Author

@HyukjinKwon HyukjinKwon changed the title [SPARK-40823][CONNECT][FOLLOW-UP] fix test_connect_column_expressions.py [SPARK-40823][CONNECT][FOLLOW-UP] Fix test_connect_column_expressions.py Oct 19, 2022
@HyukjinKwon
Copy link
Member

Merged to master.

@zhengruifeng zhengruifeng deleted the connect_hot_fix_expressions branch October 19, 2022 07:44
@grundprinzip
Copy link
Contributor

Thank you!

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
fix  test_connect_column_expressions.py

### Why are the changes needed?
master is broken

```
ERROR [0.006s]: test_column_expressions (pyspark.sql.tests.connect.test_connect_column_expressions.SparkConnectColumnExpressionSuite)
Test a more complex combination of expressions and their translation into
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/__w/spark/spark/python/pyspark/sql/tests/connect/test_connect_column_expressions.py", line 80, in test_column_expressions
    mod_fun.unresolved_function.arguments[0].unresolved_attribute.parts, ["id"]
AttributeError: parts
```

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

### How was this patch tested?
test locally

Closes apache#38308 from zhengruifeng/connect_hot_fix_expressions.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants