turboFei commented on code in PR #4113:
URL: https://github.com/apache/kyuubi/pull/4113#discussion_r1064114616


##########
kyuubi-common/src/main/scala/org/apache/kyuubi/operation/OperationManager.scala:
##########
@@ -142,8 +143,12 @@ abstract class OperationManager(name: String) extends 
AbstractService(name) {
       order: FetchOrientation,
       maxRows: Int): TRowSet = {
     val operationLog = getOperation(opHandle).getOperationLog
-    operationLog.map(_.read(maxRows)).getOrElse {
-      throw KyuubiSQLException(s"$opHandle failed to generate operation log")
+
+    operationLog match {
+      case Some(_) => operationLog.map(_.read(maxRows)).getOrElse {

Review Comment:
   ```
   case Some(opLog) => opLog.read(maxRows)
   ```



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