PostgreSQL: support the `WITH OPTIONS` column prefix in CREATE TABLE

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

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

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

評価

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

調査の方向性

Start with the column-option chain in src/parser/mod.rs around the 0.63.0 anchor at lines 9700–9770, then inspect nearby PostgreSQL partition-column parsing and tests. Add support for the shown WITH OPTIONS form so it produces a ColumnOptionDef carrying the partition-column prefix and existing column options. Done when the example parses successfully and relevant parser tests pass; the issue also points to partition_prune (isolation) in pg_regress for coverage.

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

説明

PostgreSQL

Dialect: PostgreSQL

Statement

CREATE TABLE tp (d WITH OPTIONS GENERATED ALWAYS AS (a + b + 1000) STORED);

Current behavior: The column-option chain has no WITH OPTIONS prefix, so a partition-column entry written that way is a syntax error.

Expected AST: ColumnOptionDef carrying the PG partition-column prefix (the options are a subset of existing column options).

0.63.0 anchor: column-option chain mod.rs:9700-9770

pg_regress coverage: partition_prune (isolation)

主要言語
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 を短くまとめたダイジェスト。