File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ case object Descending extends SortDirection
3232 */
3333case class SortOrder (child : Expression , direction : SortDirection ) extends UnaryExpression {
3434
35+ /** Sort order is not foldable because we don't have an eval for it. */
36+ override def foldable : Boolean = false
37+
3538 override def dataType : DataType = child.dataType
3639 override def nullable : Boolean = child.nullable
3740
Original file line number Diff line number Diff line change @@ -127,6 +127,4 @@ case class Explode(child: Expression) extends UnaryExpression with Generator {
127127 else inputMap.map { case (k, v) => InternalRow (k, v) }
128128 }
129129 }
130-
131- override def toString : String = s " explode( $child) "
132130}
You can’t perform that action at this time.
0 commit comments