mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-08 06:12:55 +00:00
fix: recover plan schema after dist analyzer (#5665)
Signed-off-by: Ruihang Xia <waynestxia@gmail.com>
This commit is contained in:
@@ -263,23 +263,23 @@ select * from t where num > 3 order by ts desc limit 2;
|
||||
|
||||
select tag from t where num > 6 order by ts desc limit 2;
|
||||
|
||||
+-----+---------------------+
|
||||
| tag | ts |
|
||||
+-----+---------------------+
|
||||
| zzz | 1970-01-01T00:00:09 |
|
||||
| zzz | 1970-01-01T00:00:06 |
|
||||
+-----+---------------------+
|
||||
+-----+
|
||||
| tag |
|
||||
+-----+
|
||||
| zzz |
|
||||
| zzz |
|
||||
+-----+
|
||||
|
||||
select tag from t where num > 6 order by ts;
|
||||
|
||||
+-----+---------------------+
|
||||
| tag | ts |
|
||||
+-----+---------------------+
|
||||
| zzz | 1970-01-01T00:00:00 |
|
||||
| zzz | 1970-01-01T00:00:03 |
|
||||
| zzz | 1970-01-01T00:00:06 |
|
||||
| zzz | 1970-01-01T00:00:09 |
|
||||
+-----+---------------------+
|
||||
+-----+
|
||||
| tag |
|
||||
+-----+
|
||||
| zzz |
|
||||
| zzz |
|
||||
| zzz |
|
||||
| zzz |
|
||||
+-----+
|
||||
|
||||
-- SQLNESS REPLACE (-+) -
|
||||
-- SQLNESS REPLACE (\s\s+) _
|
||||
@@ -292,7 +292,8 @@ explain analyze select tag from t where num > 6 order by ts desc limit 2;
|
||||
+-+-+-+
|
||||
| stage | node | plan_|
|
||||
+-+-+-+
|
||||
| 0_| 0_|_SortPreservingMergeExec: [ts@1 DESC], fetch=2 REDACTED
|
||||
| 0_| 0_|_ProjectionExec: expr=[tag@0 as tag] REDACTED
|
||||
|_|_|_SortPreservingMergeExec: [ts@1 DESC], fetch=2 REDACTED
|
||||
|_|_|_SortExec: TopK(fetch=2), expr=[ts@1 DESC], preserve_partitioning=[true] REDACTED
|
||||
|_|_|_MergeScanExec: REDACTED
|
||||
|_|_|_|
|
||||
|
||||
Reference in New Issue
Block a user