发布

  • [OPIK-6814] [BE] feat: add internal endpoint to run Agent Insights free-form SQL (#7111)

    frostbyte_neo 发布于 2026-06-17 14:29:04 +00:00

    • Free queries executor endpoint

    • fix(agent-insights): address PR review comments

    • add @Builder(toBuilder=true) to AnalyticsQueryRequest/Response and build via builders
    • reject null request body with @NotNull at the API boundary
    • label parse_error only for true ClickHouse syntax errors during EXPLAIN AST
    • return a constant message for ClickHouse limit breaches (keep raw text in logs only)
    • precompile AuthFilter path patterns instead of recompiling per request

    Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

    • fix DI

    • address comments

    • address comments

    • address comments

    • address comments

    • address comments

    • refactor(analytics-queries): move project_id to path param and simplify DAO close handling

    • Move the mandatory project_id from the request body to a path param
      (/v1/internal/analytics-queries/projects/{projectId}); the body now carries only query.
    • Collapse the DAO record-reading try-catch into a single clause with a javadoc explaining
      why it is required (checked Records.close() bridged to a thenApply Function).

    Co-Authored-By: Claude Opus 4.8 (1M context) noreply@anthropic.com

    下载附件