datafusion-contrib / datafusion-contrib/datafusion-functions-json

Can't lookup with non Int64 keys

Open
#72 2 comments 1 reaction 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.