Open colagy opened 8 months ago
I would like to add +1 on this feature/enchancement request as it opens a range of very interesting use cases.
I am relatively new to Starrocks and looking to migrate from pre-computed / pre-defined Athena aggregations to more real-time / ad-hoc workloads.
Athena is using Presto which supports the window clause based on a (date) range (https://modern-sql.com/caniuse/over_range_between_(datetime)).
The below is an example from a window clause we are currently using in Athena:
w3 AS (
PARTITION BY permaticker,
slug
ORDER BY calendardate RANGE BETWEEN INTERVAL '3' YEAR PRECEDING
AND CURRENT ROW
),
What is the best alternative to do something like this in Starrocks? Doing a self join feels really unnatural, even though I know this is one of the strong points for Starrocks.
Enhancement