Skip to content

Commit 2eeaf08

Browse files
committed
minor update
1 parent 69dc733 commit 2eeaf08

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sql/src/main/scala/app/softnetwork/elastic/sql/operator/math/ArithmeticExpression.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ case class ArithmeticExpression(
4444
expr
4545
}
4646

47-
override def baseType: SQLType =
48-
SQLTypeUtils.leastCommonSuperType(List(left.baseType, right.baseType))
47+
override def args: List[PainlessScript] = List(left, right)
48+
49+
override def baseType: SQLType = SQLTypeUtils.leastCommonSuperType(argTypes)
4950

5051
override def validate(): Either[String, Unit] = {
5152
for {

0 commit comments

Comments
 (0)