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
Offset for sqlsrv breaks queries with row_num column #44354
Comments
Seems like a PR was sent in so let's see how it goes. Thanks |
@driesvints could you reopen the issue since it is still active? |
@dunhamjared it looks like taylor doesn't wants to merge this right now. It's best that you gather some feedback from other SQL Server users first. |
Try to gather some feedback on the draft PR you sent in. |
@driesvints will do, thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
PR #39863 introduces two issues.
If offset is used for SQL Server:
row_num
as a column name or aliasrow_num
is included in the resultsExamples
Scenario 1
If you have a
row_num
column or alias, SQL Server will throw:Scenario 2
If you try to insert the offset results into the same table by using
chunk
:row_num
is added to the results and is an unexpected column, causing SQL server to throw:The text was updated successfully, but these errors were encountered: