Skip to content

Commit 2f49f9b

Browse files
authored
fix: ignore max_rows_to_read for filter values distribution (#1259)
1 parent 05ca6ce commit 2f49f9b

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.changeset/short-owls-jog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@hyperdx/common-utils": patch
3+
---
4+
5+
fix: ignore max_rows_to_read for filter values distribution

packages/common-utils/src/metadata.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,6 +633,8 @@ export class Metadata {
633633
// Set max_rows_to_group_by to avoid using too much memory when grouping on high cardinality key columns
634634
max_rows_to_group_by: `${limit * 10}`,
635635
group_by_overflow_mode: 'any',
636+
// disable max_rows_to_read limit since this is a sampled query that only happens after the user toggles it on
637+
max_rows_to_read: '0',
636638
},
637639
})
638640
.then(res =>

0 commit comments

Comments
 (0)