[Bug]: Support ALTER VIEW ... REFRESH syntax added in Trino 477
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- sql, typescript
- 領域
- databases
調査の方向性
TrinoSql.g4 を開き、statement ルールと既存の view-alteration およびキーワードの定義を確認します。ALTER VIEW view_name REFRESH 形式のサポートを追加し、その後、Trino パーサーが構文エラーなしでこのステートメントを受け入れることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Version
v4.5.1
Which SQL?
Trino
What happened?
Currently, the Trino SQL parser implementation in this repository is based on an older version of Trino SQL grammar. As specified in the grammar file comment:
* current version 450(https://github.com/DTStack/dt-sql-parser/blob/main/src/grammar/trino/TrinoSql.g4#L18C4-L18C23)
Because of this, the parser lacks support for several new DDL statements introduced in later versions of Trino. Specifically, trying to validate or parse the ALTER VIEW ... REFRESH statement results in a syntax error.
TrinoSql.g4 grammar can be updated to support the ALTER VIEW view_name REFRESH statement.
According to the official Trino 477 Release Notes:
- Add support for ALTER VIEW ... REFRESH. (#25906) (https://trino.io/docs/current/release/release-477.html)
Proposed Grammar Changes (TrinoSql.g4):
- Add a new alternative rule to the
statementblock:
statement
: ...
| KW_ALTER KW_VIEW from=viewRef KW_REFRESH # refreshView
| ...
;
(Alternatively, it can be named alterView if extracted into a separate rule).
- Ensure
REFRESHis registered as a keyword/lexer token if it's not fully global.
Additional context
This feature is highly required for correct parsing and auto-completion validation when working with Hive or Memory connectors in modern Trino clusters (v477+).
- 主要言語
- TypeScript
- スター
- 394
- フォーク
- 108
- 平均マージ
- 5分
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
DTStack/dt-sql-parser のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
DTStack/dt-sql-parser#490 · コメント 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
DTStack/dt-sql-parser#489 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
DTStack/dt-sql-parser#488 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
DTStack/dt-sql-parser#463 ·
-
enhancement improvement
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
DTStack/dt-sql-parser#445 · コメント 2 件 ·
DTStack/dt-sql-parser の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
fil-donadoni/tolaria#4409 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
corsairdev/corsair#1764 ·