Skip to content

Commit

Permalink
[apache#1460] feat(iceberg): Update deafult distribution to none.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearvive authored and Clearvive committed Jan 12, 2024
1 parent 6c701cd commit a4f2bb6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class Distributions {

// NONE is used to indicate that there is no distribution.
public static final Distribution NONE =
new DistributionImpl(Strategy.HASH, 0, Expression.EMPTY_EXPRESSION);
new DistributionImpl(Strategy.NONE, 0, Expression.EMPTY_EXPRESSION);

/**
* Create a distribution by evenly distributing the data across the number of buckets.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* </ul>
*/
public enum Strategy {
NONE,
HASH,
RANGE,
EVEN;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
public class DistributionDTO implements Distribution {

public static final DistributionDTO NONE =
new Builder().withStrategy(Strategy.HASH).withNumber(0).withArgs(EMPTY_ARGS).build();
new Builder().withStrategy(Strategy.NONE).withNumber(0).withArgs(EMPTY_ARGS).build();

// Distribution strategy/method
private final Strategy strategy;
Expand Down

0 comments on commit a4f2bb6

Please sign in to comment.