-
Notifications
You must be signed in to change notification settings - Fork 313
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: append table stats * fix: clippy
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
tests/cases/distributed/explain/analyze_append_table_count.result
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
CREATE TABLE IF NOT EXISTS `test_table` ( | ||
`bytes` BIGINT NULL, | ||
`http_version` STRING NULL, | ||
`ip` STRING NULL, | ||
`method` STRING NULL, | ||
`path` STRING NULL, | ||
`status` SMALLINT UNSIGNED NULL, | ||
`user` STRING NULL, | ||
`timestamp` TIMESTAMP(3) NOT NULL, | ||
TIME INDEX (`timestamp`), | ||
PRIMARY KEY (`user`, `path`, `status`) | ||
) | ||
ENGINE=mito | ||
WITH( | ||
append_mode = 'true' | ||
); | ||
|
||
Affected Rows: 0 | ||
|
||
-- SQLNESS REPLACE (metrics.*) REDACTED | ||
-- SQLNESS REPLACE (peers.*) REDACTED | ||
EXPLAIN ANALYZE SELECT count(*) FROM test_table; | ||
|
||
+-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
| stage | node | plan | | ||
+-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
| 0 | 0 | MergeScanExec: REDACTED | ||
| | | | | ||
| 1 | 0 | ProjectionExec: expr=[0 as COUNT(test_table.timestamp)] REDACTED | ||
| | | common_recordbatch::adapter::MetricCollector REDACTED | ||
| | | | | ||
| | | Total rows: 1 | | ||
+-------+------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ||
|
21 changes: 21 additions & 0 deletions
21
tests/cases/distributed/explain/analyze_append_table_count.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
CREATE TABLE IF NOT EXISTS `test_table` ( | ||
`bytes` BIGINT NULL, | ||
`http_version` STRING NULL, | ||
`ip` STRING NULL, | ||
`method` STRING NULL, | ||
`path` STRING NULL, | ||
`status` SMALLINT UNSIGNED NULL, | ||
`user` STRING NULL, | ||
`timestamp` TIMESTAMP(3) NOT NULL, | ||
TIME INDEX (`timestamp`), | ||
PRIMARY KEY (`user`, `path`, `status`) | ||
) | ||
|
||
ENGINE=mito | ||
WITH( | ||
append_mode = 'true' | ||
); | ||
|
||
-- SQLNESS REPLACE (metrics.*) REDACTED | ||
-- SQLNESS REPLACE (peers.*) REDACTED | ||
EXPLAIN ANALYZE SELECT count(*) FROM test_table; |