itholic commented on code in PR #48074:
URL: https://github.com/apache/spark/pull/48074#discussion_r1755906173
##########
python/pyspark/sql/udtf.py:
##########
@@ -376,10 +376,13 @@ def __call__(self, *args: "ColumnOrName", **kwargs:
"ColumnOrName") -> "DataFram
from pyspark.sql.classic.column import _to_java_column, _to_seq
from pyspark.sql import DataFrame, SparkSession
+ from pyspark.sql.functions import lit
spark = SparkSession._getActiveSessionOrCreate()
sc = spark.sparkContext
+ args = tuple(lit(arg) for arg in args)
Review Comment:
I see. Then I wonder is there any use case using string args that we can add
a test suite for now?
--
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]