Skip to content

Commit

Permalink
Fix non-aggregated value usage
Browse files Browse the repository at this point in the history
  • Loading branch information
Twixes committed Mar 28, 2024
1 parent 1406e46 commit f74ea70
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ee/api/debug_ch_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,12 @@ def list(self, request):
response = sync_execute(
"""
SELECT
query_id, argMax(query, type), argMax(query_start_time, type), argMax(exception, type),
argMax(query_duration_ms, type), max(type) AS status
query_id,
argMax(query, type) AS query,
argMax(query_start_time, type) AS query_start_time,
argMax(exception, type) AS exception,
argMax(query_duration_ms, type) AS query_duration_ms,
max(type) AS status
FROM (
SELECT
query_id, query, query_start_time, exception, query_duration_ms, toInt8(type) AS type
Expand Down

0 comments on commit f74ea70

Please sign in to comment.