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
The following breaks the PRECEDING in sqlglot 14.1.1, but PostgreSQL accepts it:
select LAST_value(col1) OVER(ORDER BY col2 RANGE between interval '1 day' PRECEDING AND'10 days' FOLLOWING) FROM tbl
Note the interval keyword. I didn't find it in the docs (other than it's the INTERVAL type used if col2 is DATE type), but it works and creates the same query plan with our without the additional interval.
The text was updated successfully, but these errors were encountered:
The following breaks the
PRECEDING
in sqlglot 14.1.1, but PostgreSQL accepts it:Note the
interval
keyword. I didn't find it in the docs (other than it's the INTERVAL type used if col2 is DATE type), but it works and creates the same query plan with our without the additionalinterval
.The text was updated successfully, but these errors were encountered: