apache / arrow-datafusion

Apache DataFusion SQL Query Engine

Home Page:https://arrow.apache.org/datafusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support window functions with order by

jimexist opened this issue · comments

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
(This section helps Arrow developers understand the context and why for this feature, in addition to the what)

Introduce a sort phase after partition or a global sort if no partition clause is specified.

Describe the solution you'd like
A clear and concise description of what you want to happen.

We'd like to support window function in three or more steps:

  1. #359 basic structure
  2. #298 empty over clause
  3. #299 with partition clause
  4. #360 with order by (this one)
  5. #361 with window frame

Solution PRs:

  • add order by planning - #463
  • implement order by execution

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

related #377