Data Types
DeltaStream's data types are similar to SQL standard's data types. They are used to declare the value type for columns in relations or input/output parameters in functions.
Primitive Data Types
Boolean
| Boolean value representing |
Character string
| Variable-length character string.
Type parameter |
Numeric
| 1-byte signed integer.
It can hold an integer value between |
| 2-byte signed integer.
It can hold an integer value between |
| 4-byte signed integer.
It can hold an integer value between |
| 8-byte signed integer.
It can hold an integer value between |
| 4-byte variable precision floating point number. |
| 8-byte variable precision floating point number. |
| Decimal number with fixed precision and scale.
Decimal type accepts two type parameters: |
Date and Time
| Calendar date consisting of |
| Time of day, without time zone, consisting of |
| Timestamp, without time zone, consisting of |
| Timestamp with local time zone consisting of |
Binary string
| Variable-length sequence of bytes.
Type parameter |
Constructed Data Types
| Array of elements with same data type.
Type parameter Example. In a relation DDL statement, the expression |
| Associative array that maps keys to values.
No duplicate keys can exist in a map and each key can map to at most one value.
Type parameters Order of keys within a |
| Strongly typed structured data type that represents an ordered collection of one or more |
Last updated