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

Support limit query in Redshift UNLOAD #24480

Open
mayankvadariya opened this issue Dec 16, 2024 · 1 comment
Open

Support limit query in Redshift UNLOAD #24480

mayankvadariya opened this issue Dec 16, 2024 · 1 comment

Comments

@mayankvadariya
Copy link
Contributor

Currently Redshift unload doesn't support limit clause directly and hence trino-redshift also doesn't support limit clause to be executed through unload flow, rather limit clause queries fallback to JDBC flow. However, Trino can implement the workaround of wrapping limit clause query in an inner query as suggested in unload docs https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.html

Image

@findinpath
Copy link
Contributor

findinpath commented Dec 19, 2024

If we are using LIMIT is there any need for UNLOAD ?

UNLOAD is supposed to be used in scenarios where we care about the delivery speed of large responses.
LIMIT seems to be more suitable for traditional resultset-based retrieval scenarios.

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

2 participants