ulysses-you commented on code in PR #4417:
URL: https://github.com/apache/kyuubi/pull/4417#discussion_r1128888205


##########
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:
   should it be statement of GetPrepareSql ?



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