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

IQueryable Select with index overload support #1725

Closed
iPilot opened this issue Feb 22, 2021 · 2 comments
Closed

IQueryable Select with index overload support #1725

iPilot opened this issue Feb 22, 2021 · 2 comments

Comments

@iPilot
Copy link

iPilot commented Feb 22, 2021

Before submit

Actually it is not an issue, but more a question or a feature request. Sorry if duplicate but can't find outside stackoverflow any mentions of this... problem.

Steps to reproduce

Try to use IQueryable.Select((source, index) => ...)) overload

The issue

Despite this query very simply can be translate into sql using row_number() over (), that overload does not supported for now. (Npgsql 5.0.3).

Further technical details

Just an sql query example

select * [, case when "ROW" = ... then ... end]
from (
	select *, row_number() over () as "ROW"
	from ... t0
	where ...
	order by t0."DATE" desc
	limit ...
) w
@roji
Copy link
Member

roji commented Feb 22, 2021

This is something that EF Core doesn't currently support. Can you please open this on https://github.com/dotnet/efcore, as this repo is for the PostgreSQL provider only?

@roji roji closed this as completed Feb 22, 2021
@roji roji transferred this issue from npgsql/npgsql Feb 22, 2021
@roji
Copy link
Member

roji commented Feb 22, 2021

Moved to dotnet/efcore#24218

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

No branches or pull requests

2 participants