datafusion-contrib / datafusion-contrib/datafusion-functions-json
Can't lookup with non Int64 keys
Open
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 62
- Forks
- 33
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 9
Description
select ('[5, 2]'->(arrow_cast(1, 'UInt32'))) fails with:
Unexpected argument type to 'json_get' at position 2, expected string or int, got UInt32
I don't see why we can't support this.
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
Start by reproducing the reported SQL query with arrow_cast(1, 'UInt32') and inspect the json_get argument handling that emits the type error. Done means the lookup accepts the non-Int64 numeric key and returns the expected JSON value, with coverage for this query or equivalent behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100