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


##########
kyuubi-server/src/main/scala/org/apache/kyuubi/server/trino/api/v1/StatementResource.scala:
##########
@@ -54,8 +55,21 @@ private[v1] class StatementResource extends 
ApiRequestContext with Logging {
   @GET
   @Path("/")
   @Consumes(Array(MediaType.TEXT_PLAIN))
-  def query(statement: String, @Context headers: HttpHeaders): QueryResults = {
-    throw new UnsupportedOperationException
+  def query(statement: String, @Context headers: HttpHeaders): Response = {
+    trinoContext = TrinoContext(headers)
+    val qr = new QueryResults(
+      "id",
+      URI.create("info"),
+      URI.create("cancel"),
+      URI.create("next"),
+      null,
+      null,
+      null,
+      null,
+      null,
+      "update_type",
+      0)
+    TrinoContext.buildTrinoResponse(qr, trinoContext)

Review Comment:
    it still can not work after this pr. I think keeping throw a exception is 
better



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