zhengruifeng commented on code in PR #37569:
URL: https://github.com/apache/spark/pull/37569#discussion_r949747941
##########
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Mode.scala:
##########
@@ -92,3 +93,75 @@ case class Mode(
override protected def withNewChildInternal(newChild: Expression):
Expression =
copy(child = newChild)
}
+
+/**
+ * Mode in Pandas' fashion. This expression is dedicated only for Pandas API
on Spark.
+ */
+case class PandasMode(
Review Comment:
since only `def merge` and `inputTypes` can be reused, so it maybe not
worthwhile
--
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]