HyukjinKwon commented on a change in pull request #29810:
URL: https://github.com/apache/spark/pull/29810#discussion_r491638784



##########
File path: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/First.scala
##########
@@ -63,9 +63,6 @@ case class First(child: Expression, ignoreNulls: Boolean)
 
   override def nullable: Boolean = true
 
-  // First is not a deterministic function.
-  override lazy val deterministic: Boolean = false

Review comment:
       I think you may need to update the `note` above and says like "The 
function can be non-deterministic because its results depend on the order of 
input rows which are usually non-deterministic after a shuffle." You might need 
to update `functions.py`, `functions.R` and `functions.scala`




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

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



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to