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
@hannesmuehleisen: Do you know if the default range specification for window functions is standardized across databases? SQLite has:
RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE NO OTHERS
which explains why the example fails, but does it necessarily fail for other databases? Should we always pass an unbounded range to mimic dplyr semantics?
The text was updated successfully, but these errors were encountered:
@krlmlr Don't know about the standard, but at least SQLite, Postgres, SQL Server and DuckDB default to RANGE BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW
Thanks. So we really need RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING for last(), and RANGE BETWEEN UNBOUNDED PRECEDING AND UNBOUNDED FOLLOWING for nth() ?
Window frame
window_frame()
is currently ignored forlast()
andnth()
:Created on 2019-10-08 by the reprex package (v0.3.0)
@hannesmuehleisen: Do you know if the default range specification for window functions is standardized across databases? SQLite has:
which explains why the example fails, but does it necessarily fail for other databases? Should we always pass an unbounded range to mimic dplyr semantics?
The text was updated successfully, but these errors were encountered: