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

[Improve] add partial limit push down #553

Merged
merged 1 commit into from
Feb 12, 2025
Merged

Conversation

JNSimba
Copy link
Member

@JNSimba JNSimba commented Feb 11, 2025

Proposed changes

Issue Number: close #xxx

Problem Summary:

There is the following flinksql
select * from table limit 10

When doris has a large data table, it will first scan all the data in the table, and then make a limit.

Here you can push the limit down to reduce the amount of data scanned.

Note that this is only partially pushed down, so the scanned data and the limit value may not be equal (For example, under multiple tablets, the scanned data will be greater than the limit value), and it will eventually rely on the upper-level Limit of FlinkSQL to do it

Checklist(Required)

  1. Does it affect the original behavior: (Yes/No/I Don't know)
  2. Has unit tests been added: (Yes/No/No Need)
  3. Has document been added or modified: (Yes/No/No Need)
  4. Does it need to update dependencies: (Yes/No)
  5. Are there any changes that cannot be rolled back: (Yes/No)

Further comments

If this is a relatively large or complex change, kick off the discussion at [email protected] by explaining why you chose the solution you did and what alternatives you considered, etc...

@JNSimba JNSimba merged commit efe53f3 into apache:master Feb 12, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants