You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@kyuubi.apache.org by "huangzhir (via GitHub)" <gi...@apache.org> on 2023/04/21 19:04:44 UTC
[GitHub] [kyuubi] huangzhir commented on issue #4732: [Bug] some Operation REST API is not idempotent
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: notifications-unsubscribe@kyuubi.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@kyuubi.apache.org
For additional commands, e-mail: notifications-help@kyuubi.apache.org