Skip to content

Commit

Permalink
fix: wrong col for histogram calculation (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
cabreraalex authored Sep 12, 2023
1 parent 311926d commit 230b016
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions backend/zeno_backend/processing/histogram_processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
export let modelColumn: string;
</script>

<div class="p-4 border border-grey-lighter max-w-[450px] min-w-[400px] rounded">
<div class="p-4 border border-grey-lighter max-w-[450px] min-w-[400px] rounded break-words">
{#await resolveDataPoint(entry)}
<CircularProgress style="height: 32px; width: 32px; margin-right:20px" indeterminate />
{:then textData}
Expand Down

0 comments on commit 230b016

Please sign in to comment.