-
Notifications
You must be signed in to change notification settings - Fork 9.9k
DS-15484: Document upcoming SQL feature additions to Workers Analytics Engine #25446
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
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.
src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/analytics/analytics-engine/sql-reference/string-functions.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/analytics/analytics-engine/worker-querying.mdx
Outdated
Show resolved
Hide resolved
src/content/docs/analytics/analytics-engine/sql-reference/mathematical-functions.mdx
Outdated
Show resolved
Hide resolved
| | `<=` | 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')` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `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')` | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| | `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')`. | |
|
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. |
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