You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kyuubi.apache.org by GitBox <gi...@apache.org> on 2021/12/24 02:40:56 UTC

[GitHub] [incubator-kyuubi] yaooqinn commented on a change in pull request #1621: [KYUUBI #1620] Implement api: /${version}/operations/${operation_identifier}/log

yaooqinn commented on a change in pull request #1621:
URL: https://github.com/apache/incubator-kyuubi/pull/1621#discussion_r774846370



##########
File path: kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/OperationsResource.scala
##########
@@ -121,4 +121,30 @@ private[v1] class OperationsResource extends ApiRequestContext {
           s"Error getting result set metadata for operation handle $operationHandleStr")
     }
   }
+
+  @ApiResponse(
+    responseCode = "200",
+    content = Array(new Content(
+      mediaType = MediaType.APPLICATION_JSON)),
+    description =
+      "get operation log")
+  @GET
+  @Path("{operationHandle}/log")
+  def getOperationLog(
+      @PathParam("operationHandle") operationHandleStr: String,
+      @QueryParam("maxrows") maxRows: Int): OperationLog = {
+    try {
+      val rowSet = backendService.sessionManager.operationManager.getOperationLogRowSet(
+        parseOperationHandle(operationHandleStr),
+        FetchOrientation.FETCH_LAST,

Review comment:
       FETCH_NEXT?




-- 
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: commits-unsubscribe@kyuubi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org