You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by jc...@apache.org on 2018/10/11 21:06:52 UTC
calcite git commit: [CALCITE-2622] RexFieldCollation toString method
is not deterministic
Repository: calcite
Updated Branches:
refs/heads/master dfd012cf0 -> fb7914ec6
[CALCITE-2622] RexFieldCollation toString method is not deterministic
Project: http://git-wip-us.apache.org/repos/asf/calcite/repo
Commit: http://git-wip-us.apache.org/repos/asf/calcite/commit/fb7914ec
Tree: http://git-wip-us.apache.org/repos/asf/calcite/tree/fb7914ec
Diff: http://git-wip-us.apache.org/repos/asf/calcite/diff/fb7914ec
Branch: refs/heads/master
Commit: fb7914ec61fc57c8348d9da144e2fbd608c00c61
Parents: dfd012c
Author: Jesus Camacho Rodriguez <jc...@apache.org>
Authored: Thu Oct 11 13:57:00 2018 -0700
Committer: Jesus Camacho Rodriguez <jc...@apache.org>
Committed: Thu Oct 11 13:57:00 2018 -0700
----------------------------------------------------------------------
core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/calcite/blob/fb7914ec/core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java b/core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java
index 7b76bb7..3a04eb0 100644
--- a/core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java
+++ b/core/src/main/java/org/apache/calcite/rex/RexFieldCollation.java
@@ -21,6 +21,7 @@ import org.apache.calcite.sql.SqlKind;
import org.apache.calcite.util.Pair;
import com.google.common.collect.ImmutableSet;
+import com.google.common.collect.Sets;
import java.util.Set;
@@ -29,7 +30,7 @@ import java.util.Set;
*/
public class RexFieldCollation extends Pair<RexNode, ImmutableSet<SqlKind>> {
public RexFieldCollation(RexNode left, Set<SqlKind> right) {
- super(left, ImmutableSet.copyOf(right));
+ super(left, Sets.immutableEnumSet(right));
}
@Override public String toString() {