Skip to content

Commit fa68a22

Browse files
committed
Make eval() and genCode() final
1 parent 662d60d commit fa68a22

File tree

1 file changed

+2
-2
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/Expression.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ abstract class Expression extends TreeNode[Expression] {
184184
*/
185185
trait Unevaluable extends Expression {
186186

187-
override def eval(input: InternalRow = null): Any =
187+
final override def eval(input: InternalRow = null): Any =
188188
throw new UnsupportedOperationException(s"Cannot evaluate expression: $this")
189189

190-
override protected def genCode(ctx: CodeGenContext, ev: GeneratedExpressionCode): String =
190+
final override protected def genCode(ctx: CodeGenContext, ev: GeneratedExpressionCode): String =
191191
throw new UnsupportedOperationException(s"Cannot evaluate expression: $this")
192192
}
193193

0 commit comments

Comments
 (0)