From 230b0169830cf837144ef4e142b72849801f7e8c Mon Sep 17 00:00:00 2001 From: Alex Cabrera Date: Tue, 12 Sep 2023 08:50:40 -0700 Subject: [PATCH] fix: wrong col for histogram calculation (#170) --- backend/zeno_backend/processing/histogram_processing.py | 4 ++-- .../instance-views/views/views/TextClassification.svelte | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/zeno_backend/processing/histogram_processing.py b/backend/zeno_backend/processing/histogram_processing.py index 864b0327..0ee6f6ab 100644 --- a/backend/zeno_backend/processing/histogram_processing.py +++ b/backend/zeno_backend/processing/histogram_processing.py @@ -160,9 +160,9 @@ def histogram_metric_task( case_statement = sql.SQL("CASE ") for i, b in enumerate(col_request.buckets): case_statement += sql.SQL("WHEN {} >= {} AND {} < {} THEN {} ").format( - sql.Identifier(metric_col_id), + sql.Identifier(col_id), sql.Literal(b.bucket), - sql.Identifier(metric_col_id), + sql.Identifier(col_id), sql.Literal(b.bucket_end), sql.Literal(i), ) diff --git a/frontend/src/lib/components/instance-views/views/views/TextClassification.svelte b/frontend/src/lib/components/instance-views/views/views/TextClassification.svelte index 39e30497..5acae39b 100644 --- a/frontend/src/lib/components/instance-views/views/views/TextClassification.svelte +++ b/frontend/src/lib/components/instance-views/views/views/TextClassification.svelte @@ -8,7 +8,7 @@ export let modelColumn: string; -
+
{#await resolveDataPoint(entry)} {:then textData}