PostgreSQL: support operator classes in `PARTITION BY HASH (...)` key lists

Aperta
#2,865 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust, sql

Direzione di ricerca

Start at mod.rs:9111-9117, where the partition key list is parsed as a bare expression list, and trace how partition clauses are represented in the AST. Add support for an optional operator class on each hash partition key while preserving the existing expression form. Check the partition_prune pg_regress coverage; done when the supplied CREATE TABLE statement parses into an AST with both operator classes attached to their keys.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

PostgreSQL

Dialect: PostgreSQL

Statement

CREATE TABLE t (a int, b text) PARTITION BY HASH (a int4_ops, b text_ops);

Current behavior: The partition key list is parsed as a bare expression list, so the opclass that follows each key is a syntax error.

Expected AST: A structured partition-key list carrying the optional operator class per key.

0.63.0 anchor: mod.rs:9111-9117

pg_regress coverage: create_table (regression) / partition_prune

Lingua principale
Rust
Stelle
3.5k
Fork
805
Merge medio
2g 3h
PR unite (30g)
116

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/datafusion-sqlparser-rs

Tutte le issue di apache/datafusion-sqlparser-rs

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.