Skip to content

Commit 5ec101f

Browse files
committed
Fixed build error
1 parent 759262d commit 5ec101f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/First.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ import org.apache.spark.sql.types._
4747
case class First(funcName: String, child: Expression, ignoreNullsExpr: Expression)
4848
extends DeclarativeAggregate with ExpectsInputTypes {
4949

50-
def this(child: Expression) = this(child, Literal.create(false, BooleanType))
51-
5250
def this(child: Expression, ignoreNullsExpr: Expression) = this("first", child, ignoreNullsExpr)
5351

52+
def this(child: Expression) = this(child, Literal.create(false, BooleanType))
53+
5454
override def children: Seq[Expression] = child :: ignoreNullsExpr :: Nil
5555

5656
override def nullable: Boolean = true

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/aggregate/Last.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ import org.apache.spark.sql.types._
4747
case class Last(funcName: String, child: Expression, ignoreNullsExpr: Expression)
4848
extends DeclarativeAggregate with ExpectsInputTypes {
4949

50-
def this(child: Expression) = this(child, Literal.create(false, BooleanType))
51-
5250
def this(child: Expression, ignoreNullsExpr: Expression) = this("last", child, ignoreNullsExpr)
5351

52+
def this(child: Expression) = this(child, Literal.create(false, BooleanType))
53+
5454
override def children: Seq[Expression] = child :: ignoreNullsExpr :: Nil
5555

5656
override def nullable: Boolean = true

0 commit comments

Comments
 (0)