mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-05-30 20:00:36 +00:00
chore: sqlness fmt (#7551)
chore Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -24,46 +24,40 @@ VALUES
|
||||
Affected Rows: 10
|
||||
|
||||
-- should not fail with mismatch timezone
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z NOW
|
||||
SELECT count(*) FROM (
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
ngx_access_log;
|
||||
ngx_access_log);
|
||||
|
||||
+--------------------------------+
|
||||
| now() |
|
||||
+--------------------------------+
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
| NOW |
|
||||
+--------------------------------+
|
||||
+----------+
|
||||
| count(*) |
|
||||
+----------+
|
||||
| 10 |
|
||||
+----------+
|
||||
|
||||
-- SQLNESS REPLACE TimestampNanosecond\(\d+ TimestampNanosecond(NOW
|
||||
-- SQLNESS REPLACE (peers.*) REDACTED
|
||||
-- SQLNESS REPLACE (partitioning.*) REDACTED
|
||||
EXPLAIN SELECT
|
||||
EXPLAIN SELECT count(*) FROM (
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
ngx_access_log;
|
||||
ngx_access_log);
|
||||
|
||||
+---------------+-------------------------------------------------------------------------------+
|
||||
| plan_type | plan |
|
||||
+---------------+-------------------------------------------------------------------------------+
|
||||
| logical_plan | MergeScan [is_placeholder=false, remote_input=[ |
|
||||
| | Projection: TimestampNanosecond(NOW, Some("+00:00")) AS now() |
|
||||
| | TableScan: ngx_access_log |
|
||||
| | ]] |
|
||||
| physical_plan | CooperativeExec |
|
||||
+---------------+-----------------------------------------------------------------------------------+
|
||||
| plan_type | plan |
|
||||
+---------------+-----------------------------------------------------------------------------------+
|
||||
| logical_plan | MergeScan [is_placeholder=false, remote_input=[ |
|
||||
| | Projection: count(Int64(1)) AS count(*) |
|
||||
| | Aggregate: groupBy=[[]], aggr=[[count(Int64(1))]] |
|
||||
| | Projection: TimestampNanosecond(NOW, Some("+00:00")) AS now() |
|
||||
| | TableScan: ngx_access_log |
|
||||
| | ]] |
|
||||
| physical_plan | CooperativeExec |
|
||||
| | MergeScanExec: REDACTED
|
||||
| | |
|
||||
+---------------+-------------------------------------------------------------------------------+
|
||||
| | |
|
||||
+---------------+-----------------------------------------------------------------------------------+
|
||||
|
||||
DROP TABLE ngx_access_log;
|
||||
|
||||
|
||||
@@ -21,18 +21,19 @@ VALUES
|
||||
("client10", "KR", "2022-01-01 00:00:09");
|
||||
|
||||
-- should not fail with mismatch timezone
|
||||
-- SQLNESS REPLACE \d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z NOW
|
||||
SELECT count(*) FROM (
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
ngx_access_log;
|
||||
ngx_access_log);
|
||||
|
||||
-- SQLNESS REPLACE TimestampNanosecond\(\d+ TimestampNanosecond(NOW
|
||||
-- SQLNESS REPLACE (peers.*) REDACTED
|
||||
-- SQLNESS REPLACE (partitioning.*) REDACTED
|
||||
EXPLAIN SELECT
|
||||
EXPLAIN SELECT count(*) FROM (
|
||||
SELECT
|
||||
now()
|
||||
FROM
|
||||
ngx_access_log;
|
||||
ngx_access_log);
|
||||
|
||||
DROP TABLE ngx_access_log;
|
||||
Reference in New Issue
Block a user