hyperdx/packages/common-utils
Drew Davis fd9f290e2a
feat: Add query params, sorting, and placeholders to Raw-SQL tables (#1857)
Closes HDX-3580
Closes HDX-3034

## Summary

This PR enhances the support for SQL-driven tables

1. The selected date range can now be referenced in the query with query params. The available query params are outlined in a new section above the SQL input.
2. The table no longer OOMs on large result sets (it is now truncated to the first 10k results), or crashes when selecting columns that are Map or JSON type
3. The table can now be sorted client-side for sql-driven tables
4. There is now placeholder / example SQL in the input

### Screenshots or video

https://github.com/user-attachments/assets/4f39fd0a-d33e-4f8c-9e91-84143d23e293

### How to test locally or on Vercel

This feature can be tested locally or on the preview environment without any special toggles.

### References



- Linear Issue: HDX-3580
- Related PRs:
2026-03-06 16:05:34 +00:00
..
src feat: Add query params, sorting, and placeholders to Raw-SQL tables (#1857) 2026-03-06 16:05:34 +00:00
.env.test chore: Run integration tests on different ports (#1801) 2026-02-25 20:52:17 +00:00
CHANGELOG.md Release HyperDX (#1790) 2026-02-27 08:38:01 -08:00
eslint.config.mjs chore(eslint): add @typescript-eslint/no-unsafe-type-assertion rule (#1534) 2025-12-30 16:01:11 +00:00
jest.config.js perf: Improve getKeyValues query performance for JSON keys (#1284) 2025-10-27 16:46:46 +00:00
jest.int.config.js perf: Improve getKeyValues query performance for JSON keys (#1284) 2025-10-27 16:46:46 +00:00
package.json build(deps): bump semver from 5.7.1 to 7.7.3 (#1702) 2026-03-02 17:47:44 +00:00
README.md DX: running api + app + task concurrently with npm script (dev) (#567) 2025-01-23 17:31:25 +00:00
tsconfig.json Improve common-utils intellisense. Currently "Go to Definition" on an… (#1159) 2025-09-11 12:57:41 -06:00
tsup.config.ts feat: introduce common-utils package (#554) 2025-01-16 18:15:22 +00:00

How to test the package with HyperDX app/api

  1. Run yarn build in the root directory of this project (packages/common-utils)
  2. Run yarn dev in the root directory of app/api project (packages/app,api)
  3. You should be able to test utils with the app