Skip to content

Commit

Permalink
fix: cartesian product in sql join (#2959)
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang committed Apr 23, 2024
1 parent 139dc3e commit c96092d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/phoenix/server/api/types/Project.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ async def span_evaluation_summary(
base_query = (
select(models.SpanAnnotation)
.join(models.Span)
.join(models.Trace)
.join(models.Trace, models.Span.trace_rowid == models.Trace.id)
.where(models.Trace.project_rowid == self.id_attr)
.where(models.SpanAnnotation.annotator_kind == "LLM")
.where(models.SpanAnnotation.name == evaluation_name)
Expand Down

0 comments on commit c96092d

Please sign in to comment.