huangzhir commented on issue #4732:
URL: https://github.com/apache/kyuubi/issues/4732#issuecomment-1518232616

   I don't think this is a bug. This API retrieves the result of 
operationHandle, and the default fetchOrientation is FETCH_NEXT, which 
continuously retrieves the next maxRows of data.
   
https://github.com/apache/kyuubi/blob/26581f4a24aa043b6c7a450733afd6e996a50913/kyuubi-server/src/main/scala/org/apache/kyuubi/server/api/v1/OperationsResource.scala#L169
   fetchOrientation has three values, FETCH_NEXT, FETCH_PRIOR, FETCH_FIRST. If 
you want to keep returning the maxRows-th data, the parameter of 
fetchOrientation can be configured as FETCH_FIRST.
   
https://github.com/apache/kyuubi/blob/26581f4a24aa043b6c7a450733afd6e996a50913/externals/kyuubi-spark-sql-engine/src/main/scala/org/apache/kyuubi/engine/spark/operation/SparkOperation.scala#L244


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