Skip to content

Commit

Permalink
update explain query
Browse files Browse the repository at this point in the history
Signed-off-by: YANGDB <[email protected]>
  • Loading branch information
YANG-DB committed Nov 4, 2023
1 parent ad58298 commit 10d7c4e
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 8 deletions.
15 changes: 7 additions & 8 deletions integ-test/src/test/python/http_logs/queries/q8.sql
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Explain
SELECT
day,
status
FROM mys3.default.http_logs_plain
WHERE status >= 400
GROUP BY day, status
LIMIT 100;
Explain SELECT
day,
status
FROM mys3.default.http_logs_plain
WHERE status >= 400
GROUP BY day, status
LIMIT 100;
96 changes: 96 additions & 0 deletions integ-test/src/test/python/http_logs/results/q8.json
Original file line number Diff line number Diff line change
@@ -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
}
}
}

0 comments on commit 10d7c4e

Please sign in to comment.