Skip to content
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

docs: add docs for UUID(bytes) #9658

Merged
merged 1 commit into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/developer-guide/ksqldb-reference/scalar-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -1607,12 +1607,15 @@ Converts a string to uppercase.

```sql title="Since: 0.10.0"
UUID()
UUID(bytes)
```
Creates a Universally Unique Identifier (UUID) generated according to RFC 4122.

A call to UUID() returns a value conforming to UUID version 4, sometimes called
"random UUID", as described in RFC 4122.

A call to UUID(bytes) returns a value conforming to UUID.

The value is a 128-bit number represented as a string of five hexadecimal numbers,
_aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee_, for example, `237e9877-e79b-12d4-a765-321741963000`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
category = FunctionCategory.STRING,
description = "Create a Universally Unique Identifier (UUID) generated according to RFC 4122. "
+ "A call to UUID() returns a value conforming to UUID version 4, sometimes called "
+ "\"random UUID\", as described in RFC 4122. The value is a 128-bit number represented "
+ "\"random UUID\", as described in RFC 4122. A call to UUID(bytes) returns a value conforming to UUID. The value is a 128-bit number represented "
+ "as a string of five hexadecimal numbers aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee.")
public class Uuid {

Expand Down