cxzl25 commented on code in PR #5102:
URL: https://github.com/apache/kyuubi/pull/5102#discussion_r1277030492


##########
externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/udf/KDFRegistry.scala:
##########
@@ -73,6 +73,16 @@ object KDFRegistry {
     "string",
     "1.4.0")
 
+  val engine_url: KyuubiDefinedFunction = create(
+    "engine_url",
+    udf { () =>
+      Option(TaskContext.get()).map(_.getLocalProperty(KYUUBI_ENGINE_URL))

Review Comment:
   Why not just call `KyuubiSparkUtil.engineUrl`



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