zhengruifeng commented on PR #39302:
URL: https://github.com/apache/spark/pull/39302#issuecomment-1367713744
this PR is to fix:
```
File "/.../spark/python/pyspark/sql/connect/column.py", line 90, in
pyspark.sql.connect.column.Column.eqNullSafe
Failed example:
df1.select(
df1['value'] == 'foo',
df1['value'].eqNullSafe('foo'),
df1['value'].eqNullSafe(None)
).show()
Exception raised:
Traceback (most recent call last):
File "/.../miniconda3/envs/python3.9/lib/python3.9/doctest.py", line
1336, in __run
exec(compile(example.source, filename, "single",
File "<doctest pyspark.sql.connect.column.Column.eqNullSafe[2]>", line
4, in <module>
df1['value'].eqNullSafe(None)
File
"/.../workspace/forked/spark/python/pyspark/sql/connect/column.py", line 78, in
wrapped
return scalar_function(name, self, other)
File
"/.../workspace/forked/spark/python/pyspark/sql/connect/column.py", line 95, in
scalar_function
return Column(UnresolvedFunction(op, [arg._expr for arg in args]))
File
"/.../workspace/forked/spark/python/pyspark/sql/connect/column.py", line 95, in
<listcomp>
return Column(UnresolvedFunction(op, [arg._expr for arg in args]))
AttributeError: 'NoneType' object has no attribute '_expr'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]