From 107d5a841ab3f6fbc3b3abe25b659061d8523d8a Mon Sep 17 00:00:00 2001 From: philo Date: Wed, 8 Dec 2021 20:48:34 +0800 Subject: [PATCH] Add tackling for ColumnarEqualTo type in getResultAttrFromExpr --- .../main/scala/com/intel/oap/expression/ConverterUtils.scala | 3 +++ 1 file changed, 3 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 9aee54f89..85a726000 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 @@ -385,6 +385,9 @@ object ConverterUtils extends Logging { new AttributeReference(name, DoubleType, d.nullable)() case m: ColumnarMultiply => new AttributeReference(name, m.dataType, m.nullable)() + // for situation like: case when x = y + case cet: ColumnarEqualTo => + new AttributeReference(name, cet.dataType, cet.nullable)() case other => val a = if (name != "None") { new Alias(other, name)()