hyperdxio / hyperdxio/hyperdx

Issue with Searching JSON Array Values in HyperDX

Open
#2,062 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.