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

Offen
#2,865 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
rust, sql

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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

Vorherrschende Sprache
Rust
Sterne
3.5k
Forks
805
Ø Merge
2 T. 3 Std.
Gemergte PRs (30 T.)
116

Entwicklungsumgebung

  • Kein Dockerfile und keine Docker-Compose-Datei
  • Hat eine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus apache/datafusion-sqlparser-rs

Alle Issues in apache/datafusion-sqlparser-rs

Ähnliche Issues

Weitere Issues zu Rust

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.