trinodb/trino

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

开放

#28,076 创建于 2026年2月2日

 (1 条评论) (1 个反应) (0 位负责人)Java (2,678 个派生)batch import
enhancementgood first issue

仓库指标

星标
 (9,113 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南