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

Aberta
#2,874 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
68/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
postgresql, rust
Domínio
backend, databases

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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)

Linguagem predominante
Rust
Estrelas
3.5k
Forks
805
Merge médio
2d 3h
PRs com merge (30d)
116

Preparar o ambiente

  • Sem Dockerfile nem arquivo Docker Compose
  • Tem um modelo de pull request
  • Sem guia de contribuição

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de apache/datafusion-sqlparser-rs

Todas as issues de apache/datafusion-sqlparser-rs

Issues semelhantes

Mais issues de Rust

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.