发布

  • [OPIK-5270] [BE] fix: add trace_id_prefilter to scope trace query CTEs (#5928)

    frostbyte_neo 发布于 2026-03-27 17:52:57 +00:00

    • [OPIK-5270] [BE] fix: scope trace stream query CTEs to matching traces

    • fix(trace-dao): guard prefilter against guardrails_filters

    The guardrails filter injects gagg.guardrails_result into the
    template variable, referencing the guardrails_agg CTE
    alias. Since trace_id_prefilter only queries FROM traces, this
    reference fails with UNKNOWN_IDENTIFIER.

    Guard against guardrails_filters in shouldUseTraceIdPrefilter to
    disable the prefilter when guardrails filters are active. Renamed
    the guard variable to hasCteDependentFilters for clarity.


    下载附件