MagicStack / MagicStack/asyncpg
Jsonb return as string sometimes '[]'
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 8.1k
- Forks
- 468
- PR merge metrics
- No merged PRs in 30d
Description
Hi! I'm using asyncpg 0.30.0 with python 3.12 and faced strange behaviour of jsonb, my db row contains something like [] or [{},...,{}] and most of it is arrays contains jsons in array.
But some times in records without any items i get '[]' and sometimes [].
Anybody have same issue?
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
No file or test is named. Start by reproducing the differing [] and '[]' results with asyncpg 0.30.0 and Python 3.12, then trace the JSONB handling entry point. Done means identifying whether the behavior is in asyncpg or outside it and, if confirmed, adding focused regression coverage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, python
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100