beyond1920 opened a new pull request #2661:
URL: https://github.com/apache/calcite/pull/2661
## What is the purpose of the change
The pr aims to introduce a new RelDistribution.Type (HASH_RANDOM) to solve
data skew caused by Hash type.
## Brief change log
- Add a value `HASH_RANDOM_DISTRIBUTED` in enum `RelDistribution#Type`
- Add a method `getHashRandomNumber` in interface `RelDistribution`, which
default return null.
- Update `RelDistributions` to apply for the new enum value in
`RelDistribution#Type`
- Update `ExchangeRemoveConstantKeysRule` to take new enum value in
`RelDistribution#Type` into consideration
- Update `RelJson` to take the hashRandomNumber into consideration when
convert to/From Json
## Verifying this change
- Add tests in `RelWriterTest`, `RelDistributionTest`, `RelBuilderTest`,
`RelOptRulesTest`
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]