From c2b75ce8e7d64ebd954e9d63531e5d78b41bc90b Mon Sep 17 00:00:00 2001 From: philo Date: Wed, 6 Apr 2022 21:30:50 +0800 Subject: [PATCH] Support more expression type in getting attribute --- .../scala/com/intel/oap/expression/ConverterUtils.scala | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ConverterUtils.scala b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ConverterUtils.scala index b7a24b4d5..6dfbcece5 100644 --- a/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ConverterUtils.scala +++ b/native-sql-engine/core/src/main/scala/com/intel/oap/expression/ConverterUtils.scala @@ -356,6 +356,12 @@ object ConverterUtils extends Logging { getAttrFromExpr(u.child) case ss: Substring => getAttrFromExpr(ss.children(0)) + case and: And => + getAttrFromExpr(and.children(0)) + case caseWhen: CaseWhen => + getAttrFromExpr(caseWhen.children(0)) + case greaterThanOrEqual: GreaterThanOrEqual => + getAttrFromExpr(greaterThanOrEqual.children(0)) case other => throw new UnsupportedOperationException( s"makeStructField is unable to parse from $other (${other.getClass}).")