We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2225331 commit 9c589cfCopy full SHA for 9c589cf
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/namedExpressions.scala
@@ -42,6 +42,9 @@ case class ExprId(id: Long)
42
*/
43
trait NamedExpression extends Expression { self: Product =>
44
45
+ /** We should never fold named expressions in order to not remove the alias. */
46
+ override def foldable: Boolean = false
47
+
48
def name: String
49
def exprId: ExprId
50
0 commit comments