Skip to content

Conversation

@46bit
Copy link
Contributor

@46bit 46bit commented Sep 26, 2025

Summary

This PR adds documentation for the many SQL feature additions to Workers Analytics Engine done in RM-24208.

There are now too many functions to sensibly put in a single page, so I've broken the SQL Reference documentation out into a page structure which is extensible.

I've taken deliberate inspiration from the ClickHouse SQL documentation page structure. WAE's SQL dialect is based on the ClickHouse SQL dialect, and we intend to gradually add more and more functions from CH SQL. Having a similar docs structure will work well for that.

Documentation checklist

This PR adds documentation for various SQL feature additions to Workers Analytics
Engine done in RM-24208.

There are now too many functions to sensibly put in a single page, so I've broken
the SQL Reference documentation out into a page structure which is extensible.

I've taken deliberate inspiration from the ClickHouse SQL documentation page
structure [1]. WAE's SQL dialect is based on the ClickHouse SQL dialect, and we
intend to gradually add more and more functions from CH SQL. Having a similar docs
structure will work well for that.

[1] https://clickhouse.com/docs/sql-reference/functions/math-functions
This was suggested by product.

There's some functions which have slightly changed (e.g. `quantileExactWeighted`) to support
a new alternate form more like ClickHouse. I've not labelled those functions because it's
not so important to existing users.
| `<=` | less than or equal to |
| `>=` | greater than or equal to |
| `<>` or `!=` | not equal |
| `IN` | true if the preceding expression's value is in the list<br/>`column IN ('a', 'list', 'of', 'values')` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `IN` | true if the preceding expression's value is in the list<br/>`column IN ('a', 'list', 'of', 'values')` |
| `IN` | True if the preceding expression's value is in the list<br/>`column IN ('a', 'list', 'of', 'values')`. |

| `>=` | greater than or equal to |
| `<>` or `!=` | not equal |
| `IN` | true if the preceding expression's value is in the list<br/>`column IN ('a', 'list', 'of', 'values')` |
| `NOT IN` | true if the preceding expression's value is not in the list<br/>`column NOT IN ('a', 'list', 'of', 'values')` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| `NOT IN` | true if the preceding expression's value is not in the list<br/>`column NOT IN ('a', 'list', 'of', 'values')` |
| `NOT IN` | True if the preceding expression's value is not in the list<br/>`column NOT IN ('a', 'list', 'of', 'values')`. |

@angelampcosta angelampcosta merged commit 8aa779d into cloudflare:production Oct 1, 2025
2 checks passed
@workers-devprod workers-devprod added the contribution [Holopin] Recognizes a docs contribution, big or small label Oct 1, 2025
@holopin-bot
Copy link

holopin-bot bot commented Oct 1, 2025

Congratulations @46bit, the maintainer of this repository has issued you a holobyte! Here it is: https://holopin.io/holobyte/cmg7tiiz8003cl704720pzvua

This badge can only be claimed by you, so make sure that your GitHub account is linked to your Holopin account. You can manage those preferences here: https://holopin.io/account.
Or if you're new to Holopin, you can simply sign up with GitHub, which will do the trick!

@46bit 46bit deleted the miki/DS-15484 branch October 1, 2025 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution [Holopin] Recognizes a docs contribution, big or small product:analytics Related to Analytics product September 2025 size/xl

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants