Add a Presto dialect

オープン
#2,611 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
rust, sql

調査の方向性

Start by reading the existing dialect implementations and the Dialect flags for FILTER, grouping sets, and lambdas; compare identifier rules with Presto's linked SqlBase.g4 grammar. Then locate how the lexer handles identifier characters and quote delimiters. Done means a PrestoDialect supports the proposed identifier rules and shared syntax; time travel and CREATE FUNCTION are explicitly out of scope.

索引モデルが issue の本文から書いたものです。

説明

BigQuery Hive MySQL

Presto is a distributed SQL query engine created at Facebook in 2012 and governed since 2019 by the Presto Foundation under the Linux Foundation, with members including Uber, Alibaba and IBM (which ships it in watsonx.data).

Differences in Presto's grammar (SqlBase.g4) from the existing dialects:

  • Unquoted identifiers may contain @ and : after the first character, so events:analytics is a single identifier. No existing dialect lexes this. (#2604 covers dialects that need such names split into parts.)
  • Only double quotes delimit identifiers. Backquotes, which MySQL, Hive and BigQuery accept, are rejected.
  • Time travel accepts FOR {SYSTEM_TIME | SYSTEM_VERSION | TIMESTAMP | VERSION} {AS OF | BEFORE} expr. Today the parser models only FOR SYSTEM_TIME AS OF from this family.

Proposal: a PrestoDialect with these identifier rules, plus the existing Dialect flags for syntax Presto shares with other engines (FILTER (WHERE ...), GROUPING SETS/CUBE/ROLLUP, lambdas). Time travel and CREATE FUNCTION need AST changes and can follow separately.

主要言語
Rust
スター
3.5k
フォーク
805
平均マージ
2日 3時間
マージ済み PR(30日)
116

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/datafusion-sqlparser-rs のほかの issue

apache/datafusion-sqlparser-rs の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。