You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hu...@apache.org on 2022/06/27 16:25:48 UTC

[iotdb] branch lmh/likeCheck created (now 05ca3394fc)

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

hui pushed a change to branch lmh/likeCheck
in repository https://gitbox.apache.org/repos/asf/iotdb.git


      at 05ca3394fc infer types for expressions in where clause

This branch includes the following new commits:

     new 05ca3394fc infer types for expressions in where clause

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[iotdb] 01/01: infer types for expressions in where clause

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hui pushed a commit to branch lmh/likeCheck
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 05ca3394fcec9dc56f910c5ec2d953fe12d54fc4
Author: Minghui Liu <li...@foxmail.com>
AuthorDate: Tue Jun 28 00:22:45 2022 +0800

    infer types for expressions in where clause
---
 server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/Analyzer.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/Analyzer.java b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/Analyzer.java
index 07d0617b1b..9885f8b29e 100644
--- a/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/Analyzer.java
+++ b/server/src/main/java/org/apache/iotdb/db/mpp/plan/analyze/Analyzer.java
@@ -310,6 +310,7 @@ public class Analyzer {
                 throw e;
               }
               deviceToQueryFilter.put(devicePath.getFullPath(), queryFilter);
+              queryFilter.inferTypes(typeProvider);
               updateSource(
                   queryFilter,
                   deviceToSourceExpressions.computeIfAbsent(
@@ -368,6 +369,7 @@ public class Analyzer {
             Expression queryFilter = analyzeWhere(queryStatement, schemaTree);
 
             // update sourceExpression according to queryFilter
+            queryFilter.inferTypes(typeProvider);
             updateSource(queryFilter, sourceExpressions, isRawDataSource);
             analysis.setQueryFilter(queryFilter);
           }