发布

  • [OPIK-5270] [BE] [FE] fix: skip feedback score CTEs when excluded (#6012)

    frostbyte_neo 发布于 2026-04-01 07:43:43 +00:00

    BE: Wrap the entire feedback score CTE chain (feedback_scores_combined_raw
    through feedback_scores_agg) and span feedback score chain (target_spans
    through span_feedback_scores_agg) in <if(!exclude_feedback_scores)>.
    When feedback scores are excluded, these CTEs and their LEFT JOINs are
    completely skipped (unless filtering by feedback scores)
    eliminating multiple GiB of pipeline overhead.

    FE: Add feedback_scores to the exclude list when no feedback score
    columns are visible (same pattern as experiment column exclusion).
    This applies to both v1 and v2 TracesSpansTab. On default page load
    without feedback score columns, the query drops from OOM to a few MiB.

    下载附件