bug: MSSQL RANK OVER
does not support row clause
#10291
Labels
bug
Incorrect behavior inside of ibis
RANK OVER
does not support row clause
#10291
What happened?
It looks like if
rows
are not specified when calling.over()
, by default the compiler will add "UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING" to the rows clause. This causes issue with T-SQL since the rows clause cannot be specified when using its ranking functions.When executing the query, this causes a SQL error saying "The function "rank" may not have a window frame"
Compiled:
The query would work after removing
ROWS BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING
What version of ibis are you using?
10.0.0dev97
What backend(s) are you using, if any?
MSSQL
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: