trinodb/trino

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

Open

#28.076 aperta il 2 feb 2026

Vedi su GitHub
 (1 commento) (1 reazione) (0 assegnatari)Java (2678 fork)batch import
enhancementgood first issue

Metriche repository

Star
 (9113 star)
Metriche merge PR
 (Merge medio 5g 9h) (306 PR mergiate in 30 g)

Descrizione

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

Guida contributor