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

Query: Convert "APPLY" to "JOIN" with skip via RowNumber #21282

Merged
merged 1 commit into from
Jun 16, 2020

Conversation

smitpatel
Copy link
Member

Resolves #17326

This enables filtered include with skip to be translated for Sqlite

@smitpatel smitpatel requested a review from maumar June 16, 2020 02:29
Base automatically changed from smit/SplitFilterInclude to master June 16, 2020 06:27
Resolves #17326

This enables filtered include with skip to be translated for Sqlite
@smitpatel smitpatel merged commit 2c0a6ae into master Jun 16, 2020
@smitpatel smitpatel deleted the smit/ConvertLimit branch June 16, 2020 16:32
SqlExpression limitPredicate = null;
if (offset != null)
{
offsetPredicate = new SqlBinaryExpression(
Copy link
Contributor

Choose a reason for hiding this comment

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

since we add a lot of artificial skip 0, we could recognize this pattern and remove the redundant WHERE 0 < [t].[row] from queries

Copy link
Contributor

Choose a reason for hiding this comment

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

looks like i'm late to the party - filed #21290 to track this

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.

Query: Convert 'apply' with skip to row number filtering
3 participants