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

Add support for LIMIT #2279

Merged
merged 3 commits into from
Feb 19, 2025
Merged

Add support for LIMIT #2279

merged 3 commits into from
Feb 19, 2025

Conversation

joshua-spacetime
Copy link
Collaborator

Description of Changes

Adds LIMIT to the sql api.

API and ABI breaking changes

None

Expected complexity level and risk

2

Changes include:

  1. A simple addition to the parser
  2. A rewrite rule for merging with a table scan (needed for non-tuple-at-a-time iterators)
  3. A new execution stage

Testing

Additional tests for both typing and executing a LIMIT clause

@joshua-spacetime
Copy link
Collaborator Author

Note, internal tests will fail due to a new dependency on itertools for the execution crate.

Copy link
Contributor

@mamcx mamcx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@joshua-spacetime joshua-spacetime added this pull request to the merge queue Feb 19, 2025
Merged via the queue into master with commit 6abfe8d Feb 19, 2025
13 of 14 checks passed
@joshua-spacetime joshua-spacetime deleted the joshua/sql-limit branch February 19, 2025 20:42
@joshua-spacetime joshua-spacetime linked an issue Feb 24, 2025 that may be closed by this pull request
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.

SQL: Add LIMIT to the query language
2 participants