|
1 | 1 | ksql |
2 | 2 | ===== |
3 | | - |
| 3 | + |
4 | 4 | [](https://pkg.go.dev/github.com/go-playground/ksql) |
5 | 5 |  |
6 | 6 |
|
@@ -86,17 +86,19 @@ Expressions support most mathematical and string expressions see below for detai |
86 | 86 | | `NULL` | `NULL` | N/A | |
87 | 87 | | `Coerce` | `COERCE` | Coerces one data type into another using in combination with 'Identifier'. Syntax is `COERCE <expression> _identifer_`. | |
88 | 88 | | `Identifier` | `_identifier_` | Starts and end with an `_` used with 'COERCE' to cast data types, see table below with supported values. You can combine multiple coercions if separated by a COMMA. | |
| 89 | +| `Colon` | `:` | N/A | |
89 | 90 |
|
90 | 91 | #### COERCE Types |
91 | 92 |
|
92 | | -| Type | Description | |
93 | | -|---------------|--------------------------------------------------------------------------------------------------------------------------| |
94 | | -| `_datetime_` | This attempts to convert the type into a DateTime. | |
95 | | -| `_lowercase_` | This converts the text into lowercase. | |
96 | | -| `_uppercase_` | This converts the text into uppercase. | |
97 | | -| `_title_` | This converts the text into title case, when the first letter is capitalized but the rest lower cased. | |
98 | | -| `_string_` | This converts the value into a string and supports the Value's String, Number, Bool, DateTime with nanosecond precision. | |
99 | | -| `_number_` | This converts the value into an f64 number and supports the Value's Null, String, Number, Bool and DateTime. | |
| 93 | +| Type | Description | |
| 94 | +|-----------------|--------------------------------------------------------------------------------------------------------------------------| |
| 95 | +| `_datetime_` | This attempts to convert the type into a DateTime. | |
| 96 | +| `_lowercase_` | This converts the text into lowercase. | |
| 97 | +| `_uppercase_` | This converts the text into uppercase. | |
| 98 | +| `_title_` | This converts the text into title case, when the first letter is capitalized but the rest lower cased. | |
| 99 | +| `_string_` | This converts the value into a string and supports the Value's String, Number, Bool, DateTime with nanosecond precision. | |
| 100 | +| `_number_` | This converts the value into an f64 number and supports the Value's Null, String, Number, Bool and DateTime. | |
| 101 | +| `_substr_[n:n]` | This allows taking a substring of a string value. this returns Null if no match at specified indices exits. | |
100 | 102 |
|
101 | 103 | #### License |
102 | 104 |
|
|
0 commit comments