How should empty collection values round-trip through text?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 52/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C
- Stars
- 24
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aws/pgcollection
-
The LLVM object can build before collection_config.h is generatedPossibly taken @Vonng claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 90/100
aws/pgcollection#51 ·
-
Nonempty icollection values cannot be read back from text or restored from a dumpPossibly taken @Vonng claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
aws/pgcollection#48 ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 38/100
aws/pgcollection#32 ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 42/100
aws/pgcollection#6 · 2 comments ·
All issues in aws/pgcollection
Similar issues
-
issue: bug report
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 2 days
-
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
BasedHardware/omi#26486 ·
Maintainers usually reply within 1 day
-
area/docdb kind/failing-test priority/medium status/awaiting-triage
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
yugabyte/yugabyte-db#39462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libreswan/libreswan#3185 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 3 days