-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Window functions #1469
Copy link
Copy link
Closed
Labels
comp-window-functionsWindow function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order).Window function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order).featuresql-compatibility
Description
We have been very encouraged by Clickhouse. However, as we are trying to port all of our existing scripts to Clickhouse, we are running into few roadblocks. For example: CUMULATIVE SUM or RUNNING TOTAL. We are trying to find an equivalent of Window Functions e.g. SUM(SALES) OVER (PARTITION BY PRODUCT ORDER BY SALES)
Is there a way to get Cumulative Sum or Running Total. Any inputs or guidance is much appreciated. Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
comp-window-functionsWindow function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order).Window function execution + frame handling (ROW_NUMBER/RANK/LAG/LEAD, frames, partitions, order).featuresql-compatibility