yehere commented on code in PR #4417:
URL: https://github.com/apache/kyuubi/pull/4417#discussion_r1150531023


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/v1/StatementResource.scala:
##########
@@ -73,9 +78,32 @@ private[v1] class StatementResource extends 
ApiRequestContext with Logging {
     val trinoContext = TrinoContext(headers, remoteAddr)
 
     try {
-      val query = Query(statement, trinoContext, translator, fe.be)
-      val qr = query.getQueryResults(query.getLastToken, uriInfo)
-      TrinoContext.buildTrinoResponse(qr, query.context)
+      parser.parsePlan(statement) match {
+        case GetPrepareSql(statementId, _) =>
+          val query = Query(
+            statementId,
+            statement.split(s"$statementId FROM")(1),

Review Comment:
   This parse module I want my colleague to improve based on my code. He is 
responsible for trino



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