This section provides a comprehensive reference for SQL support in Spice.ai, including syntax, data types, operators, functions, and system features. The reference is organized by topic for ease of navigation.
Spark-compatible scalar functions such as array, bit_get, date_add, like, and parse_url follow the semantics documented in the Spark SQL built-in function reference.
Spice uses Apache Arrow data types internally. Common SQL types include:
| SQL Type | Description |
|---|---|
INT, BIGINT | Integer types |
FLOAT, DOUBLE | Floating-point types |
VARCHAR, TEXT | String types |
BOOLEAN | Boolean type |
TIMESTAMP | Timestamp with nanosecond precision |
DATE | Date type |
DECIMAL | Arbitrary precision numeric |
Use CAST(expression AS type) or expression::type to convert between types.
Refer to each section for detailed syntax, supported features, and examples.