You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by "gjxdxh (via GitHub)" <gi...@apache.org> on 2023/08/21 13:23:24 UTC
[GitHub] [spark] gjxdxh commented on a diff in pull request #42454: [SPARK-44776][CONNECT] Add ProducedRowCount to SparkListenerConnectOperationFinished
gjxdxh commented on code in PR #42454:
URL: https://github.com/apache/spark/pull/42454#discussion_r1300106493
##########
connector/connect/server/src/main/scala/org/apache/spark/sql/connect/service/ExecuteEventsManager.scala:
##########
@@ -192,13 +201,23 @@ case class ExecuteEventsManager(executeHolder: ExecuteHolder, clock: Clock) {
/**
* Post @link org.apache.spark.sql.connect.service.SparkListenerConnectOperationFinished.
+ * @param producedRowsCountOpt
+ * Number of rows that are returned to the user. None is expected when the operation does not
Review Comment:
I think returning None would make it clear to us whether the corresponding query should have produced row or not, for example for a SELECT statement that has no result, we would put 0 here. And for query Like INSERT INTO, we would put a None instead of 0 here. This could better tell us whether a produced row is expected or not
--
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: reviews-unsubscribe@spark.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org