You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var blockades = _dbContext.Blockades;
var testQuery = blockades.Select(b => EF.Functions.RowNumber(EF.Functions.Over().OrderBy((long)b.BlockadeStartIndex)));
var average = testQuery.Average();
throws: 'SQLite Error 1: 'misuse of window function ROW_NUMBER()'.'
I assume it's forming a query like this:
SELECT AVG(CAST(ROW_NUMBER() OVER(ORDER BY CAST("b"."BlockadeStartIndex" AS INTEGER)) AS REAL))
FROM "Blockade" AS "b"
which also throws "misuse of window function ROW_NUMBER()" when I execute the above query from the "DB Browser for Sqlite" GUI client
The text was updated successfully, but these errors were encountered:
AdamIzon
changed the title
IQueryable.Average() breaks after calling IQueryable.Select() containing window function
Sqlite provider: IQueryable.Average() breaks after calling IQueryable.Select() containing window function
Jan 19, 2025
Example:
throws: 'SQLite Error 1: 'misuse of window function ROW_NUMBER()'.'
I assume it's forming a query like this:
which also throws "misuse of window function ROW_NUMBER()" when I execute the above query from the "DB Browser for Sqlite" GUI client
The text was updated successfully, but these errors were encountered: