Skip to content

Conversation

@46bit
Copy link
Contributor

@46bit 46bit commented Oct 27, 2025

Summary

Document new SQL functions additions to Workers Analytics Engine's SQL API:

  • countIf
  • sumIf
  • avgIf
  • toYear
  • toMonth
  • toDayOfMonth
  • toHour
  • toMinute
  • toSecond
  • toStartOfYear
  • toStartOfMonth
  • toStartOfDay
  • toStartOfHour
  • toStartOfFifteenMinutes
  • toStartOfMinute
  • today

Pre-release

  • countIf, sumIf, avgIf are already live
  • the date/time additions are pending

Documentation checklist

@46bit 46bit requested review from a team, elithrar and irvinebroque as code owners October 27, 2025 18:49
@github-actions github-actions bot added October 2025 product:analytics Related to Analytics product labels Oct 27, 2025
@46bit 46bit changed the title [WIP] Document aggregate-if and date/time function additions to the SQL API for Analytics [WIP] DS-15647 DS-15648: Document aggregate-if and date/time function additions to the SQL API for Analytics Oct 27, 2025
@irvinebroque
Copy link
Contributor

Nice one! Want to make a changelog? See #26069 as reference

…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.
@46bit 46bit force-pushed the miki/sql-api-for-analytics-date-time-functions branch from b1410dd to e26eaeb Compare October 29, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants