From 10d7c4e1c5b8e30d8a6fbe6efc208138548eabc8 Mon Sep 17 00:00:00 2001 From: YANGDB Date: Fri, 3 Nov 2023 18:13:11 -0700 Subject: [PATCH] update explain query Signed-off-by: YANGDB --- .../src/test/python/http_logs/queries/q8.sql | 15 ++- .../src/test/python/http_logs/results/q8.json | 96 +++++++++++++++++++ 2 files changed, 103 insertions(+), 8 deletions(-) diff --git a/integ-test/src/test/python/http_logs/queries/q8.sql b/integ-test/src/test/python/http_logs/queries/q8.sql index f69b95ba5..5f7f6d53c 100644 --- a/integ-test/src/test/python/http_logs/queries/q8.sql +++ b/integ-test/src/test/python/http_logs/queries/q8.sql @@ -1,8 +1,7 @@ -Explain -SELECT - day, - status -FROM mys3.default.http_logs_plain -WHERE status >= 400 -GROUP BY day, status - LIMIT 100; \ No newline at end of file +Explain SELECT + day, + status + FROM mys3.default.http_logs_plain + WHERE status >= 400 + GROUP BY day, status + LIMIT 100; diff --git a/integ-test/src/test/python/http_logs/results/q8.json b/integ-test/src/test/python/http_logs/results/q8.json index e69de29bb..f39b67c58 100644 --- a/integ-test/src/test/python/http_logs/results/q8.json +++ b/integ-test/src/test/python/http_logs/results/q8.json @@ -0,0 +1,96 @@ +{ + "data": { + "ok": true, + "resp": { + "status": "SUCCESS", + "schema": [ + { + "name": "@timestamp", + "type": "date" + }, + { + "name": "clientip", + "type": "string" + }, + { + "name": "request", + "type": "string" + }, + { + "name": "status", + "type": "integer" + }, + { + "name": "size", + "type": "integer" + }, + { + "name": "year", + "type": "integer" + }, + { + "name": "month", + "type": "integer" + }, + { + "name": "day", + "type": "integer" + } + ], + "datarows": [ + [ + "1998-06-14T19:59:55.000Z", + "185.163.25.0", + "GET /images/comp_bg2_hm.gif HTTP/1.1", + 404, + 340, + 1998, + 6, + 14 + ], + [ + "1998-06-14T19:59:55.000Z", + "161.62.26.0", + "GET /images/comp_bg2_hm.gif HTTP/1.0", + 404, + 343, + 1998, + 6, + 14 + ], + [ + "1998-06-14T19:59:55.000Z", + "63.158.15.0", + "GET /images/comp_bg2_hm.gif HTTP/1.1", + 404, + 335, + 1998, + 6, + 14 + ], + [ + "1998-06-14T19:59:55.000Z", + "190.10.13.0", + "GET /images/comp_bg2_hm.gif HTTP/1.1", + 404, + 335, + 1998, + 6, + 14 + ], + [ + "1998-06-14T19:59:53.000Z", + "28.87.6.0", + "GET /images/comp_bg2_hm.gif HTTP/1.0", + 404, + 349, + 1998, + 6, + 14 + ] + ], + "total": 5, + "size": 5 + } + } +} \ No newline at end of file