You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@calcite.apache.org by GitBox <gi...@apache.org> on 2022/01/06 03:31:50 UTC

[GitHub] [calcite] chunweilei commented on a change in pull request #2661: [CALCITE-4957] Add HASH_RANDOM in RelDistribution.Type to solve data skew caused by Hash Distribution type

chunweilei commented on a change in pull request #2661:
URL: https://github.com/apache/calcite/pull/2661#discussion_r779277947



##########
File path: core/src/test/java/org/apache/calcite/test/RelOptRulesTest.java
##########
@@ -6297,7 +6297,7 @@ private Sql spatial(String sql) {
             b.field(0),
             b.field(1))
         .sortExchange(
-            RelDistributions.hash(ImmutableList.of(0, 1)),
+            RelDistributions.hashRandom(ImmutableList.of(0, 1), 8),

Review comment:
       Should we add a new test?




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@calcite.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org