How should empty collection values round-trip through text?

Aperta
#50 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
52/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
c, postgresql
Ambito
databases

Direzione di ricerca

Start with src/collection_io.c lines 94–112 and read the related discussions in #24 and #36 for context on the text format. Check how empty untyped and explicitly typed values are written and read, and how deleting the last entry affects value_type(). Done means tests preserve the agreed distinctions; the issue leaves the format decisions open.

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

Descrizione

Both key types can write {} for an empty value, but reading that output back fails. This matters for text COPY and restores of tables that contain empty collections. The existing tests also expect value_type() to return NULL after the last entry is deleted.

Would you accept {} for an untyped empty value and the existing type-and-entries envelope for an explicitly typed empty value? Should deleting the last entry clear the type as it does today? I’d like to preserve that distinction in tests before changing the format. Related discussions include #24 and #36. The nonempty integer-key case is tracked in #48.

Relevant upstream source

Lingua principale
C
Stelle
24
Fork
6
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 aws/pgcollection

Tutte le issue di aws/pgcollection

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.