From b7ac677a7377c01fcef6b23d6f62996433b4926c Mon Sep 17 00:00:00 2001 From: Bradley Besserman Date: Tue, 2 Sep 2025 13:21:45 -0400 Subject: [PATCH 1/2] [DDSQL] data type and type literal doc updates --- content/en/ddsql_reference/_index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/en/ddsql_reference/_index.md b/content/en/ddsql_reference/_index.md index 12bbb19aaac..d755c4fab7b 100644 --- a/content/en/ddsql_reference/_index.md +++ b/content/en/ddsql_reference/_index.md @@ -107,7 +107,7 @@ DDSQL supports the following data types: ### Array types -All data types except `JSON` support array types. Arrays can contain multiple values of the same data type. +All data types support array types. Arrays can contain multiple values of the same data type. ## Type literals @@ -123,7 +123,7 @@ DDSQL supports explicit type literals using the syntax `[TYPE] [value]`. | `TIMESTAMP` | `TIMESTAMP 'value'` | `TIMESTAMP '2023-12-25 10:30:00'` | | `VARCHAR` | `VARCHAR 'value'` | `VARCHAR 'hello world'` | -The type prefix can be omitted and the type is automatically inferred from the value. For example, `'hello world'` is inferred as `VARCHAR`, `123` as `BIGINT`, and `true` as `BOOLEAN`. +The type prefix can be omitted and the type is automatically inferred from the value. For example, `'hello world'` is inferred as `VARCHAR`, `123` as `BIGINT`, and `true` as `BOOLEAN`. Use explicit type prefixes when values could be ambiguous, for instance `TIMESTAMP '2025-01-01'` which would be inferred as `VARCHAR` without the prefix. ### Array literals @@ -145,7 +145,7 @@ SELECT price * DOUBLE 1.08 AS price_with_tax, created_at + INTERVAL '7 days' AS expiry_date FROM products -WHERE active = BOOLEAN true; +WHERE created_at > TIMESTAMP '2025-01-01'; {{< /code-block >}} ## Functions From c04f1bd0d28d780454cf87ac0f42bd04f62d135d Mon Sep 17 00:00:00 2001 From: Bradley Besserman Date: Tue, 2 Sep 2025 14:45:17 -0400 Subject: [PATCH 2/2] explicit type prefix sentence phrasing Co-authored-by: Joe Peeples --- content/en/ddsql_reference/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/ddsql_reference/_index.md b/content/en/ddsql_reference/_index.md index d755c4fab7b..ef9856fb1c0 100644 --- a/content/en/ddsql_reference/_index.md +++ b/content/en/ddsql_reference/_index.md @@ -123,7 +123,7 @@ DDSQL supports explicit type literals using the syntax `[TYPE] [value]`. | `TIMESTAMP` | `TIMESTAMP 'value'` | `TIMESTAMP '2023-12-25 10:30:00'` | | `VARCHAR` | `VARCHAR 'value'` | `VARCHAR 'hello world'` | -The type prefix can be omitted and the type is automatically inferred from the value. For example, `'hello world'` is inferred as `VARCHAR`, `123` as `BIGINT`, and `true` as `BOOLEAN`. Use explicit type prefixes when values could be ambiguous, for instance `TIMESTAMP '2025-01-01'` which would be inferred as `VARCHAR` without the prefix. +The type prefix can be omitted and the type is automatically inferred from the value. For example, `'hello world'` is inferred as `VARCHAR`, `123` as `BIGINT`, and `true` as `BOOLEAN`. Use explicit type prefixes when values could be ambiguous; for example,`TIMESTAMP '2025-01-01'` would be inferred as `VARCHAR` without the prefix. ### Array literals