ClickHouse/ClickHouse

Query parameter support for engine identifier

Offen

#61.865 geöffnet am 25.03.2024

 (2 Kommentare) (7 Reaktionen) (0 zugewiesene Personen)C++ (8.400 Forks)batch import
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

Expected behavior

ENGINE={engine:Identifier} is substituted before the table engine parse.

Contributor Guide