godfreyhe commented on issue #8051: [FLINK-12018] [table-planner-blink] Add support for generating optimized logical plan for Sort and Rank URL: https://github.com/apache/flink/pull/8051#issuecomment-477894159 > I'm a bit confused once i discovered `Sort`, `Limit` and `Rank` can somehow convert between them? For Batch, only OVER query with filter can be converted to Rank now, because `BatchExecRank` supports two-stage rank to reduce data-shuffling. For Stream, `StreamExecLimit` does not exist. Queries with LIMIT will be converted to `StreamExecRank`, and the only meaning of `StreamExecSort`'s existence is for testing with bounded source now, which supports the queries that `StreamExecRank` cannot support. So they could not be converted between each other.
---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services