mirror of
https://github.com/hyperdxio/hyperdx
synced 2026-04-21 13:37:15 +00:00
fix: dense rank should be computed base on rank value and group (#302)
This commit is contained in:
parent
702192420e
commit
b87c4d771b
2 changed files with 8 additions and 1 deletions
7
.changeset/smart-squids-jog.md
Normal file
7
.changeset/smart-squids-jog.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
'@hyperdx/api': patch
|
||||
'@hyperdx/app': patch
|
||||
---
|
||||
|
||||
fix: dense rank should be computed base on rank value and group (multi-series
|
||||
chart)
|
||||
|
|
@ -1589,7 +1589,7 @@ export const queryMultiSeriesChart = async ({
|
|||
SELECT *, ?(?) OVER (PARTITION BY group) as rank_order_by_value
|
||||
FROM raw_groups
|
||||
), final AS (
|
||||
SELECT *, DENSE_RANK() OVER (ORDER BY rank_order_by_value ?) as rank
|
||||
SELECT *, DENSE_RANK() OVER (ORDER BY rank_order_by_value ?, group) as rank
|
||||
FROM groups
|
||||
)
|
||||
SELECT *
|
||||
|
|
|
|||
Loading…
Reference in a new issue