HyukjinKwon commented on code in PR #37616:
URL: https://github.com/apache/spark/pull/37616#discussion_r951434652
##########
python/pyspark/sql/column.py:
##########
@@ -71,6 +71,18 @@ def _to_java_column(col: "ColumnOrName") -> JavaObject:
return jcol
+def _to_java_expr(col: "ColumnOrName") -> JavaObject:
+ if isinstance(col, (Column, str)):
Review Comment:
wouldn't this disable `str` as a value? We should probably just allow
`Column` only. How does it work in Scala side?
##########
python/pyspark/sql/tests/test_dataframe.py:
##########
@@ -14,7 +14,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-
Review Comment:
Let;s remove all unrelated changes.
--
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]