You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by xi...@apache.org on 2021/08/16 08:10:26 UTC

[iotdb] branch 0.12BasicOperator created (now 2525afc)

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

xiangweiwei pushed a change to branch 0.12BasicOperator
in repository https://gitbox.apache.org/repos/asf/iotdb.git.


      at 2525afc  Modify the comparsion way of enum type

This branch includes the following new commits:

     new 2525afc  Modify the comparsion way of enum type

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: Modify the comparsion way of enum type

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

xiangweiwei pushed a commit to branch 0.12BasicOperator
in repository https://gitbox.apache.org/repos/asf/iotdb.git

commit 2525afc3e595b3751c685870dd4af6d4fc9caf6e
Author: Alima777 <wx...@gmail.com>
AuthorDate: Mon Aug 16 14:40:33 2021 +0800

    Modify the comparsion way of enum type
---
 pom.xml                                                               | 4 +---
 .../org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java    | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6903781..23866a4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -632,9 +632,7 @@
                             </importOrder>
                             <removeUnusedImports/>
                         </java>
-                        <lineEndings>
-                            UNIX
-                        </lineEndings>
+                        <lineEndings>UNIX</lineEndings>
                     </configuration>
                     <executions>
                         <execution>
diff --git a/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java b/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java
index c0f73b5..690938d 100644
--- a/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java
+++ b/server/src/main/java/org/apache/iotdb/db/qp/logical/crud/BasicFunctionOperator.java
@@ -101,7 +101,7 @@ public class BasicFunctionOperator extends FunctionOperator {
         ret = funcToken.getUnaryExpression(singlePath, Double.valueOf(value));
         break;
       case TEXT:
-        if (funcToken.name().equals("EQ") || funcToken.name().equals("NOTEQUAL")) {
+        if (funcToken == BasicOperatorType.EQ || funcToken == BasicOperatorType.NOTEQUAL) {
           ret =
               funcToken.getUnaryExpression(
                   singlePath,