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 c380e8659..063716f4e 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 @@ -319,6 +319,8 @@ object ConverterUtils extends Logging { fieldExpr match { case a: Cast => getAttrFromExpr(a.child) + case l: Literal => + new AttributeReference("name", l.dataType, l.nullable)() case a: AggregateExpression => getAttrFromExpr(a.aggregateFunction.children(0)) case a: AttributeReference =>