apache / apache/beam

[Feature Request]: Add hotkey shuffle/fanout support to BeamSQL

Closed
#28,186 1 comment 0 reactions 0 assignees View on GitHub
awaiting triage java new feature P2 sql stale
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

### What would you like to happen?

Currently BeamSQL does not have a way to reshuffle data that contains hotkeys during sub-transforms. For example, if a pipeline performs a JOIN operation as part of a SQLTransform, there is a good chance that a given key contains a disproportionate amount of data when it is fed into the GroupByKey that is performed as part of the expanded JOIN operation. Adding hotkey detection and reshuffling/fanout similar to `Combine.PerKey.withHotKeyFanout` should greatly increase performance.

### Issue Priority

Priority: 2 (default / most feature requests should be filed as P2)

### Issue Components

- [ ] Component: Python SDK
- [X] Component: Java SDK
- [ ] Component: Go SDK
- [ ] Component: Typescript SDK
- [ ] Component: IO connector
- [ ] Component: Beam examples
- [ ] Component: Beam playground
- [ ] Component: Beam katas
- [ ] Component: Website
- [ ] Component: Spark Runner
- [ ] Component: Flink Runner
- [ ] Component: Samza Runner
- [ ] Component: Twister2 Runner
- [ ] Component: Hazelcast Jet Runner
- [ ] Component: Google Cloud Dataflow Runner

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.