-
Notifications
You must be signed in to change notification settings - Fork 10k
DS-15647 DS-15648: Document aggregate-if and date/time function additions to the WAE SQL API #26101
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
Merged
rianvdm
merged 4 commits into
cloudflare:production
from
46bit:miki/sql-api-for-analytics-date-time-functions
Nov 12, 2025
Merged
DS-15647 DS-15648: Document aggregate-if and date/time function additions to the WAE SQL API #26101
rianvdm
merged 4 commits into
cloudflare:production
from
46bit:miki/sql-api-for-analytics-date-time-functions
Nov 12, 2025
+439
−21
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
irvinebroque
approved these changes
Oct 27, 2025
Contributor
|
Nice one! Want to make a changelog? See #26069 as reference |
46bit
commented
Oct 28, 2025
src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx
Outdated
Show resolved
Hide resolved
46bit
commented
Oct 28, 2025
src/content/docs/analytics/analytics-engine/sql-reference/aggregate-functions.mdx
Outdated
Show resolved
Hide resolved
b1410dd to
e26eaeb
Compare
…ions to the WAE SQL API This commit adds the following function additions to the docs: - `countIf` - `sumIf` - `avgIf` - `toYear` - `toMonth` - `toDayOfMonth` - `toHour` - `toMinute` - `toSecond` - `toStartOfYear` - `toStartOfMonth` - `toStartOfDay` - `toStartOfHour` - `toStartOfFifteenMinutes` - `toStartOfMinute` - `today` This commit reorders the date/time docs page to be in approximate alphabetical order, which works much better than just appending the functions to the end.
…L API These are some assorted functions commonly used by LLMs: - `toDayOfWeek` - `toStartOfWeek` - `toStartOfTenMinutes` - `toStartOfFiveMinutes` - `toYYYYMM`
This commit adds a changelog entry for recent function additions, as documented in the previous commits. I have chosen to omit descriptions of the date/time functions, because they are all quite generic and it looks unwieldy to have some many samey descriptions.
14f442c to
7e4515c
Compare
irvinebroque
approved these changes
Nov 11, 2025
Contributor
irvinebroque
left a comment
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.
Looks great!!! Thank you!!!
src/content/changelog/workers/2025-11-12-analytics-engine-further-sql-enhancements.mdx
Outdated
Show resolved
Hide resolved
…her-sql-enhancements.mdx Co-authored-by: Brendan Irvine-Broque <[email protected]>
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
October 2025
product:analytics
Related to Analytics product
size/m
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Document new SQL functions additions to Workers Analytics Engine's SQL API:
countIfsumIfavgIftoYeartoMonthtoDayOfMonthtoDayOfWeektoHourtoMinutetoSecondtoStartOfYeartoStartOfMonthtoStartOfWeektoStartOfDaytoStartOfHourtoStartOfFifteenMinutestoStartOfTenMinutestoStartOfFiveMinutestoStartOfMinutetodaytoYYYYMMPre-release
countIf,sumIf,avgIfare already liveDocumentation checklist