Open Yohahaha opened 7 months ago
Spark's max_by/min_by require compare type is orderable.
https://github.com/apache/spark/blob/b07bdea3616fc582a1242d3b47b465cd406c13c4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/MaxByAndMinBy.scala#L49-L50
https://github.com/apache/spark/blob/b07bdea3616fc582a1242d3b47b465cd406c13c4/sql/api/src/main/scala/org/apache/spark/sql/catalyst/expressions/OrderUtils.scala#L25-L32
However, current implementation does not have this check, we need to fix it.
n/a
No response
@Yohahaha are you working on this?
not yet, just record the issue for now.
https://github.com/oap-project/gluten/issues/4501
Bug description
Spark's max_by/min_by require compare type is orderable.
https://github.com/apache/spark/blob/b07bdea3616fc582a1242d3b47b465cd406c13c4/sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/MaxByAndMinBy.scala#L49-L50
https://github.com/apache/spark/blob/b07bdea3616fc582a1242d3b47b465cd406c13c4/sql/api/src/main/scala/org/apache/spark/sql/catalyst/expressions/OrderUtils.scala#L25-L32
However, current implementation does not have this check, we need to fix it.
System information
n/a
Relevant logs
No response