Query: remove redundant WHERE 0 > x.row from APPLY converted to ROW_NUMBER #21290
Labels
area-query
closed-out-of-scope
This is not something that will be fixed/implemented and the issue is closed.
type-cleanup
When translating split queries where subquery has order by, we add Skip(0) so that Sql server won't complain. Later we convert some of those queries to ROW_NUMBER using the take/skip value as a filter on the generated row numbers. We should recognize skip(0) and avoid the unnecessary predicate
The text was updated successfully, but these errors were encountered: