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

Allow accessing nested json

Open
#88 0 comments 0 reactions 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

A json item that is itself a string that is valid json:

select '{"usage":"[123]"}'->'usage'->>0

Currently gives null, as does Postgres.
But IMO it would be a better user experience if it "just worked"

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

No file or test is named in the issue. Start by reproducing the SQL query and locating the implementation of the nested JSON access operators; then determine how valid JSON strings should be handled and add coverage for the example. Done means the query returns the nested array value instead of null.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust, sql
Domain
databases
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 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.