This is an automated email from the ASF dual-hosted git repository.

caogaofei pushed a commit to branch ty/TableModelGrammar
in repository https://gitbox.apache.org/repos/asf/iotdb.git


The following commit(s) were added to refs/heads/ty/TableModelGrammar by this 
push:
     new f0f9b18889d fix select Time returns Identifier problem
f0f9b18889d is described below

commit f0f9b18889d6b8fd34883d6e63204dfe228ba2ac
Author: Beyyes <[email protected]>
AuthorDate: Sun Apr 21 09:56:57 2024 +0800

    fix select Time returns Identifier problem
---
 .../iotdb/db/queryengine/plan/relational/planner/PlanBuilder.java       | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/PlanBuilder.java
 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/PlanBuilder.java
index 289f88acdc6..34758694318 100644
--- 
a/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/PlanBuilder.java
+++ 
b/iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/planner/PlanBuilder.java
@@ -112,7 +112,7 @@ public class PlanBuilder {
       // Skip any expressions that have already been translated and recorded 
in the
       // translation map, or that are duplicated in the list of exp
       if (!mappings.containsKey(expression)
-          && !set.contains(expression.toString())
+          && !set.contains(expression.toString().toLowerCase())
           && !(expression instanceof FieldReference)) {
         set.add(expression.toString());
         Symbol symbol = symbolAllocator.newSymbol("expr", 
analysis.getType(expression));

Reply via email to