ueshin commented on code in PR #43946:
URL: https://github.com/apache/spark/pull/43946#discussion_r1408346486


##########
sql/core/src/main/scala/org/apache/spark/sql/UDTFRegistration.scala:
##########
@@ -44,6 +45,7 @@ class UDTFRegistration private[sql] (tableFunctionRegistry: 
TableFunctionRegistr
          | udfDeterministic: ${udtf.udfDeterministic}
       """.stripMargin)
 
-    tableFunctionRegistry.createOrReplaceTempFunction(name, udtf.builder, 
"python_udtf")
+    tableFunctionRegistry.createOrReplaceTempFunction(
+      name, udtf.builder(_, new CatalystSqlParser()), "python_udtf")

Review Comment:
   We shouldn't use `CatalystSqlParser`.
   How about making the argument `parser` for `builder` a by-name parameter and 
use the parser from active session here?



-- 
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]

Reply via email to