Issue with Searching JSON Array Values in HyperDX
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 9.9k
- Forks
- 471
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 117
Description
When searching JSON data using a SQL WHERE condition in the Search panel, querying array values works correctly when using array index notation, for example:
attributes.feature_manager.antiDebug[1] = 'Clean'
However, when using the following format:
attributes.feature_manager.antiDebug.0 = 'Clean'
it is treated as NULL and does not return any results.
While this behavior itself is understandable, the issue arises in the UI workflow.
When selecting a specific key-value pair from the detail view and using the Search button to add it as a SQL WHERE condition, it automatically generates the query in the following format:
attributes.feature_manager.antiDebug.0 = 'Clean'
This results in no matching data being returned, even though the equivalent array index query works correctly.
Contributor 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.
Research direction
Start in the Search panel's detail-view workflow, focusing on the Search button that generates SQL WHERE conditions for selected key-value pairs. Compare the generated query for array values with the documented bracket-index form. Done means selecting an array element produces a working search condition that returns the matching data.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 65/100