Skip to main content

DUCKDB_UNREFERENCEABLE_PARAMETER_KEYWORDS

Constant DUCKDB_UNREFERENCEABLE_PARAMETER_KEYWORDS 

Source
pub const DUCKDB_UNREFERENCEABLE_PARAMETER_KEYWORDS: [&str; 79];
Expand description

Non-reserved keywords that cannot be a macro parameter’s name, lowercase and sorted.

A parameter is referred to by name in the macro’s body, and CREATE MACRO m(left) AS left + 1 fails to parse, as do join, like, row and the rest of this list. Measured the same way as DUCKDB_UNCALLABLE_KEYWORDS — CREATE MACRO m(kw) AS kw + 1 then SELECT m(41) — and the same 79 on DuckDB 1.4.4, 1.5.0 and 1.5.5. DuckDB 2.0.0 can refer to 49 of them (row, values, integer, …) and to every keyword it added; they stay refused for the reason given under DUCKDB_UNCALLABLE_KEYWORDS — the list is the union over the supported engines, and the end-to-end sweep pins the 49 on 2.0.