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
However, Window.range_between currently supports integer arguments for start and end. The new RANGE BETWEEN INTERVAL syntax does not work, unless you do something like convert the order_by timestamp to unix and set start/end to an integer value in seconds.
What is the current behavior?
RANGE BETWEEN INTERVAL
was recently added to Snowflake SQL: https://community.snowflake.com/s/article/How-to-rewrite-a-RANGE-BETWEEN-INTERVAL-query-in-SnowflakeHowever,
Window.range_between
currently supports integer arguments forstart
andend
. The newRANGE BETWEEN INTERVAL
syntax does not work, unless you do something like convert theorder_by
timestamp to unix and set start/end to an integer value in seconds.E.g.:
What is the desired behavior?
Support non-int arguments for
Window.range_between
, at least allowing a literal likeINTERVAL '24 MONTHS' PRECEDING
How would this improve
snowflake-snowpark-python
?Support more flexible window functions and update to latest Snowflake SQL capabilities.
References, Other Background
The text was updated successfully, but these errors were encountered: