From 55fadbba1d96358e07669bd8276c9b7318b83f1f Mon Sep 17 00:00:00 2001 From: Shekar Siri Date: Mon, 20 Jan 2025 10:12:20 +0100 Subject: [PATCH] change(api): ch query updates - fix the column name for errorId --- api/chalicelib/core/errors/errors_ch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/chalicelib/core/errors/errors_ch.py b/api/chalicelib/core/errors/errors_ch.py index fc2825110..0c25c8142 100644 --- a/api/chalicelib/core/errors/errors_ch.py +++ b/api/chalicelib/core/errors/errors_ch.py @@ -353,7 +353,7 @@ def search(data: schemas.SearchErrorsSchema, project_id, user_id): ch_sub_query.append("error_id IN %(error_ids)s") main_ch_query = f"""\ - SELECT details.error_id, + SELECT details.error_id as error_id, name, message, users, total, sessions, last_occurrence, first_occurrence, chart FROM (SELECT JSONExtractString(toString(`$properties`), 'error_id') AS error_id,