You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by vl...@apache.org on 2020/07/17 19:30:49 UTC

[calcite] branch master updated (9cafb57 -> e4458fa)

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

vladimirsitnikov pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git.


 discard 9cafb57  Remove excessive Arrays.asList from RexNormalize#hashCode
     new e4458fa  Remove excessive Arrays.asList from RexNormalize#hashCode

This update added new revisions after undoing existing revisions.
That is to say, some revisions that were in the old version of the
branch are not in the new version.  This situation occurs
when a user --force pushes a change and generates a repository
containing something like this:

 * -- * -- B -- O -- O -- O   (9cafb57)
            \
             N -- N -- N   refs/heads/master (e4458fa)

You should already have received notification emails for all of the O
revisions, and so the following emails describe only the N revisions
from the common base, B.

Any revisions marked "omit" are not gone; other references still
refer to them.  Any revisions marked "discard" are gone forever.

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.


Summary of changes:
 core/src/main/java/org/apache/calcite/rex/RexNormalize.java | 1 -
 1 file changed, 1 deletion(-)


[calcite] 01/01: Remove excessive Arrays.asList from RexNormalize#hashCode

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

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/calcite.git

commit e4458fa6b92c77bab73e6d804be2657203ed5b54
Author: Vladimir Sitnikov <si...@gmail.com>
AuthorDate: Fri Jul 17 21:58:06 2020 +0300

    Remove excessive Arrays.asList from RexNormalize#hashCode
---
 core/src/main/java/org/apache/calcite/rex/RexNormalize.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/core/src/main/java/org/apache/calcite/rex/RexNormalize.java b/core/src/main/java/org/apache/calcite/rex/RexNormalize.java
index fb7af07..2f0829e 100644
--- a/core/src/main/java/org/apache/calcite/rex/RexNormalize.java
+++ b/core/src/main/java/org/apache/calcite/rex/RexNormalize.java
@@ -27,7 +27,6 @@ import com.google.common.collect.ImmutableList;
 
 import org.apiguardian.api.API;
 
-import java.util.Arrays;
 import java.util.List;
 import java.util.Objects;
 
@@ -127,7 +126,7 @@ public class RexNormalize {
     if (x < 0) {
       return Objects.hash(
           SqlStdOperatorTable.reverse(operator),
-          Arrays.asList(operands.get(1), operands.get(0)));
+          operands.get(1), operands.get(0));
     }
     if (isSymmetricalCall(operator, operands.get(0), operands.get(1))) {
       return Objects.hash(operator, unorderedHash(operands));