Skip to content

Commit 816f90a

Browse files
authored
fix: disable json metadata field and key fetching (#1200)
Currently not working well at all. Just disabling for the time being
1 parent 8f06ce7 commit 816f90a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.changeset/orange-mayflies-lie.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: disable json filters for now

packages/common-utils/src/metadata.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ export class Metadata {
347347
column: string;
348348
maxKeys?: number;
349349
} & TableConnection) {
350+
// HDX-2480 delete line below to reenable json filters
351+
return []; // Need to disable JSON keys for the time being.
350352
const cacheKey = metricName
351353
? `${databaseName}.${tableName}.${column}.${metricName}.keys`
352354
: `${databaseName}.${tableName}.${column}.keys`;
@@ -485,6 +487,8 @@ export class Metadata {
485487
});
486488

487489
for (const c of columns) {
490+
// HDX-2480 delete condition below to reenable json filters
491+
if (c.type === 'JSON') continue;
488492
fields.push({
489493
path: [c.name],
490494
type: c.type,

0 commit comments

Comments
 (0)