-
Notifications
You must be signed in to change notification settings - Fork 10k
changelog wae sql function updates #25504
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
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
db8209e
changelog wae sql function updates
nevikashah ab68a76
missing functions
nevikashah 4461468
add info on WAE
nevikashah b8d43e0
add info on WAE
nevikashah cc7f19b
custom analytics
nevikashah 1a9b82b
getting started edits
nevikashah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
src/content/changelog/workers/2025-09-26-analytics-engine-sql-enhancements.mdx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| --- | ||
| title: Workers Analytics Engine now supports additional SQL functions | ||
| description: Workers Analytics Engine now supports additional SQL functions including mathematical operations, advanced string manipulation, and improved documentation structure. | ||
| date: 2025-09-26 | ||
| products: | ||
| - workers-analytics-engine | ||
| --- | ||
|
|
||
| We've expanded the SQL capabilities of Workers Analytics Engine with several new functions: | ||
|
|
||
| **New window functions:** | ||
| - `first_value()` - Returns the first value in an ordered set of values within a partition | ||
| - `last_value()` - Returns the last value in an ordered set of values within a partition | ||
|
|
||
| **New bit functions:** | ||
| - `bitAnd()` - Returns the bitwise AND of two expressions | ||
| - `bitCount()` - Returns the number of bits set to one in the binary representation of a number | ||
| - `bitHammingDistance()` - Returns the number of bits that differ between two numbers | ||
| - `bitNot()` - Returns a number with all bits flipped | ||
| - `bitOr()` - Returns the inclusive bitwise OR of two expressions | ||
| - `bitRotateLeft()` - Rotates all bits in a number left by specified positions | ||
| - `bitRotateRight()` - Rotates all bits in a number right by specified positions | ||
| - `bitShiftLeft()` - Shifts all bits in a number left by specified positions | ||
| - `bitShiftRight()` - Shifts all bits in a number right by specified positions | ||
| - `bitTest()` - Returns the value of a specific bit in a number | ||
| - `bitXor()` - Returns the bitwise exclusive-or of two expressions | ||
|
|
||
| **New mathematical functions:** | ||
| - `abs()` - Returns the absolute value of a number | ||
| - `log()` - Computes the natural logarithm of a number | ||
| - `round()` - Rounds a number to a specified number of decimal places | ||
| - `ceil()` - Rounds a number up to the nearest integer | ||
| - `floor()` - Rounds a number down to the nearest integer | ||
|
|
||
WalshyDev marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| **New string functions:** | ||
| - `lowerUTF8()` - Converts a string to lowercase using UTF-8 encoding | ||
| - `upperUTF8()` - Converts a string to uppercase using UTF-8 encoding | ||
|
|
||
| **New encoding functions:** | ||
| - `hex()` - Converts a number to its hexadecimal representation | ||
| - `bin()` - Converts a string to its binary representation | ||
|
|
||
| **New type conversion functions:** | ||
| - `toUInt8()` - Converts any numeric expression, or expression resulting in a string representation of a decimal, into an unsigned 8 bit integer | ||
|
|
||
| To get started, checkout out our docs to read more on newly added and existing [Workers Analytics Engine SQL functions](/analytics/analytics-engine/sql-reference/). | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.