Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORDER BY pushdown into connectors #8093

Open
lhofhansl opened this issue May 26, 2021 · 0 comments
Open

ORDER BY pushdown into connectors #8093

lhofhansl opened this issue May 26, 2021 · 0 comments

Comments

@lhofhansl
Copy link
Member

lhofhansl commented May 26, 2021

We should support pushing down ORDER BY into connectors (such as JDBC, etc), and only do a streaming merge sort in Trino.

The use case I have in mind is reading data from (say) a Phoenix table along an index, the client would like to get streaming results, i.e. start reading from the resultset without the entire sort being materialized in Trino.
If Trino can push ORDER BY to a connector and that connector can decide (or not) to use an index, then that should be possible.

Another option is to (somehow) expose connector level indexes to Trino's planner.

Related to #18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant