apache / apache/beam

Support "partition by XXX order by XXX" SQL

Open
#19,122 0 comments 1 reaction 0 assignees View on GitHub
dsl improvement P3 sql
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Based on our expereince, looks like for bounded stream, beam SQL does not able to support statement like "partition by XXX order by XXX". It will not be able to parition data to different nodes and sorting data in each partition/node parallelly.

We have to use Java SDK and extension to convert following SQL statement to GroupByKey **** SortValues to achieve this. 

 

Does we miss anything? If not, is this something that we can improve? and took a quick look at calcite, seems that it can explain the query plan for "partition by... order by..." fine.

 

Imported from Jira [BEAM-6105](https://issues.apache.org/jira/browse/BEAM-6105). Original Jira may contain additional context.
Reported by: BrandonJ.

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.