Skip to content

asap-tools: calculate_fidelity never scores SQL queries #885

Closed

Description

@milindsrivastava1997

calculate_fidelity.py never scores SQL queries: the ClickHouse client stores ClickHouse's TabSeparated text in QueryResult.raw_text_result and leaves result as None, and get_all_timeseries only reads result. So every SQL query (ASAPQuery's ClickHouse adapter also answers in TabSeparated) yields no time series and no score.

Fix: parse TabSeparated rows (group-by columns → labels, last column → value) into the same keyed form result uses, so SQL queries are scored like PromQL ones.

Split out of the RQE frontend tracker.

Activity

  1. milindsrivastava1997 commented on Oct 14, 2026

    @milindsrivastava1997
    ContributorAuthor

    Tracker: #886

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions