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:50 UTC
[calcite] 01/01: Remove excessive Arrays.asList from
RexNormalize#hashCode
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));