We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69dc733 commit 2eeaf08Copy full SHA for 2eeaf08
sql/src/main/scala/app/softnetwork/elastic/sql/operator/math/ArithmeticExpression.scala
@@ -44,8 +44,9 @@ case class ArithmeticExpression(
44
expr
45
}
46
47
- override def baseType: SQLType =
48
- SQLTypeUtils.leastCommonSuperType(List(left.baseType, right.baseType))
+ override def args: List[PainlessScript] = List(left, right)
+
49
+ override def baseType: SQLType = SQLTypeUtils.leastCommonSuperType(argTypes)
50
51
override def validate(): Either[String, Unit] = {
52
for {
0 commit comments