Skip to main content

DUCKDB_RESERVED_KEYWORDS

Constant DUCKDB_RESERVED_KEYWORDS 

Source
pub const DUCKDB_RESERVED_KEYWORDS: [&str; 75];
Expand description

DuckDB’s reserved SQL keywords, lowercase and sorted.

A function with one of these names cannot be called without quoting it — SELECT order(1) is a parser error, only "order"(1) works — so validate_function_name rejects them (case-insensitively). Most of the other keywords (unreserved, column_name, type_function) are callable unquoted and stay allowed — DuckDB itself ships left, similar and year — but not all: see DUCKDB_UNCALLABLE_KEYWORDS.

Taken from SELECT keyword_name FROM duckdb_keywords() WHERE keyword_category = 'reserved', which returns this identical list on DuckDB 1.4.4, 1.5.0, 1.5.5, 1.5.6 and 2.0.0. An end-to-end test compares it against the linked engine, so a DuckDB release that changes the set fails CI.