ClickHouse/ClickHouse
Query parameter support for engine identifier
Offen
#61.865 geöffnet am 25.03.2024
help wantedunfinished code
Repository-Metriken
- Stars
- (47.419 Sterne)
- PR-Merge-Metriken
- (Durchschn. Merge 2T 2h) (1.000 gemergte PRs in 30 T)
Beschreibung
Describe the unexpected behaviour
Currently, it's not possible to pass an table engine name as a query parameter:
CREATE TABLE IF NOT EXISTS {table:Identifier} (
key String
, value String
, expiration DateTime
) ENGINE={engine:Identifier}
It's not correctly handled in the parser and results in Unknown table engine . (UNKNOWN_STORAGE) error. (empty engine name)
How to reproduce
24.2.1.174- originally raised in https://github.com/ClickHouse/clickhouse-go/issues/1238
Expected behavior
ENGINE={engine:Identifier} is substituted before the table engine parse.