File tree Expand file tree Collapse file tree 2 files changed +7
-19
lines changed
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions Expand file tree Collapse file tree 2 files changed +7
-19
lines changed Original file line number Diff line number Diff line change @@ -39,3 +39,9 @@ case class KnownNotNull(child: Expression) extends TaggingExpression {
39
39
}
40
40
41
41
case class KnownFloatingPointNormalized (child : Expression ) extends TaggingExpression
42
+
43
+ /**
44
+ * Wrapper expression to avoid further optimizations between the parent and child of this
45
+ * expression.
46
+ */
47
+ case class GroupingExpression (child : Expression ) extends TaggingExpression
Original file line number Diff line number Diff line change 18
18
package org .apache .spark .sql .catalyst .expressions
19
19
20
20
import org .apache .spark .sql .catalyst .InternalRow
21
- import org .apache .spark .sql .catalyst .expressions .codegen .{ CodegenContext , CodegenFallback , ExprCode }
21
+ import org .apache .spark .sql .catalyst .expressions .codegen .CodegenFallback
22
22
import org .apache .spark .sql .internal .SQLConf
23
23
import org .apache .spark .sql .types ._
24
24
@@ -155,21 +155,3 @@ object GroupingID {
155
155
if (SQLConf .get.integerGroupingIdEnabled) IntegerType else LongType
156
156
}
157
157
}
158
-
159
- /**
160
- * Wrapper expression to avoid further optimizations between the parent and child of this
161
- * expression.
162
- */
163
- case class GroupingExpression (child : Expression ) extends UnaryExpression {
164
- override def eval (input : InternalRow ): Any = {
165
- child.eval(input)
166
- }
167
-
168
- override def doGenCode (ctx : CodegenContext , ev : ExprCode ): ExprCode = {
169
- child.genCode(ctx)
170
- }
171
-
172
- override def dataType : DataType = {
173
- child.dataType
174
- }
175
- }
You can’t perform that action at this time.
0 commit comments