trinodb/trino

Support `IF NOT EXISTS` clause in `CREATE VIEW` statement.

Offen

#28.076 geöffnet am 02.02.2026

 (1 Kommentar) (1 Reaktion) (0 zugewiesene Personen)Java (2.678 Forks)batch import
enhancementgood first issue

Repository-Metriken

Stars
 (9.113 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

IF NOT EXISTS is supported in CREATE MATERIALIZED VIEW, but not for CREATE VIEW

https://github.com/trinodb/trino/blob/6dafeebd711564a42a5e9556dd3803ce652d56d8/core/trino-grammar/src/main/antlr4/io/trino/grammar/sql/SqlBase.g4#L106-L115

there is IMO no reason not to support IF NOT EXISTS in CREATE VIEW as well

cc @martint

Contributor Guide