Skip to content

Commit 97f7467

Browse files
committed
fix build failure with Scala 2.13
1 parent 3695e99 commit 97f7467

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,8 +1414,8 @@ class AstBuilder extends SqlBaseBaseVisitor[AnyRef] with SQLConfHelper with Logg
14141414
// So we use LikeAll or NotLikeAll instead.
14151415
val patterns = expressions.map(_.eval(EmptyRow).asInstanceOf[UTF8String])
14161416
ctx.NOT match {
1417-
case null => LikeAll(e, patterns)
1418-
case _ => NotLikeAll(e, patterns)
1417+
case null => LikeAll(e, patterns.toSeq)
1418+
case _ => NotLikeAll(e, patterns.toSeq)
14191419
}
14201420
} else {
14211421
getLikeQuantifierExprs(ctx.expression).reduceLeft(And)

0 commit comments

Comments
 (0)