You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2021/11/04 17:37:54 UTC
[GitHub] [spark] cloud-fan commented on a change in pull request #29810: [SPARK-32940][SQL] Collect, first and last should be deterministic aggregate functions
cloud-fan commented on a change in pull request #29810:
URL: https://github.com/apache/spark/pull/29810#discussion_r743065778
##########
File path: sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/optimizer/UnwrapCastInBinaryComparisonSuite.scala
##########
@@ -183,10 +182,10 @@ class UnwrapCastInBinaryComparisonSuite extends PlanTest with ExpressionEvalHelp
}
test("unwrap cast should skip when expression is non-deterministic or foldable") {
- Seq(positiveInt, negativeInt).foreach(v => {
- val e = Cast(First(f, ignoreNulls = true), IntegerType) <=> v
+ Seq(positiveLong, negativeLong).foreach (v => {
+ val e = Cast(SparkPartitionID(), LongType) <=> v
Review comment:
can we use `Rand`?
--
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