Skip to content

Query Stats tab missing date columns (last execution, creation time) #649

@erikdarlingdata

Description

@erikdarlingdata

Which component(s) does this affect?

  • Dashboard
  • Lite

Problem Statement

The Query Stats tab groups by query_hash and aggregates all metrics, but does not include any date/time columns in the output. The underlying v_query_stats view has collection_time, last_execution_time, and creation_time, but these are lost in the GROUP BY.

This makes it impossible to know when a query was last executed or when it was first cached without drilling down to the history window.

Proposed Solution

Add to the Query Stats SQL and model:

  • MAX(last_execution_time) AS last_execution_time
  • MAX(creation_time) AS creation_time (cached time)

Add corresponding columns to the DataGrid in both Dashboard and Lite.

The drill-down history window should also include these columns if it doesn't already.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions