mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-10-21 11:22:31 +00:00
test: redact dynamic filter in order_by sqlness (#8286)
Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
@@ -289,6 +289,7 @@ select tag from t where num > 6 order by ts;
|
||||
-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED
|
||||
-- SQLNESS REPLACE num_ranges=\d+ num_ranges=REDACTED
|
||||
-- SQLNESS REPLACE ,\sfilter=\[[^]]+\]
|
||||
-- SQLNESS REPLACE DynamicFilter\s\[[^\]]*\] DynamicFilter [ REDACTED ]
|
||||
explain analyze select tag from t where num > 6 order by ts desc limit 2;
|
||||
|
||||
+-+-+-+
|
||||
@@ -299,14 +300,14 @@ explain analyze select tag from t where num > 6 order by ts desc limit 2;
|
||||
|_|_|_SortExec: TopK(fetch=2), expr=[ts@1 DESC], preserve_partitioning=[true] REDACTED
|
||||
|_|_|_MergeScanExec: REDACTED
|
||||
|_|_|_|
|
||||
| 1_| 0_|_FilterExec: DynamicFilter [ true ] REDACTED
|
||||
| 1_| 0_|_FilterExec: DynamicFilter [ REDACTED ] REDACTED
|
||||
|_|_|_RepartitionExec: partitioning=REDACTED
|
||||
|_|_|_SortPreservingMergeExec: [ts@1 DESC], fetch=2 REDACTED
|
||||
|_|_|_SortExec: TopK(fetch=2), expr=[ts@1 DESC], preserve_partitioning=[true] REDACTED
|
||||
|_|_|_FilterExec: num@2 > 6, projection=[tag@0, ts@1] REDACTED
|
||||
|_|_|_SeqScan: region=REDACTED, "partition_count":{"count":1, "mem_ranges":1, "files":0, "file_ranges":0} REDACTED
|
||||
|_|_|_|
|
||||
| 1_| 1_|_FilterExec: DynamicFilter [ true ] REDACTED
|
||||
| 1_| 1_|_FilterExec: DynamicFilter [ REDACTED ] REDACTED
|
||||
|_|_|_RepartitionExec: partitioning=REDACTED
|
||||
|_|_|_SortPreservingMergeExec: [ts@1 DESC], fetch=2 REDACTED
|
||||
|_|_|_SortExec: TopK(fetch=2), expr=[ts@1 DESC], preserve_partitioning=[true] REDACTED
|
||||
|
||||
@@ -96,6 +96,7 @@ select tag from t where num > 6 order by ts;
|
||||
-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED
|
||||
-- SQLNESS REPLACE num_ranges=\d+ num_ranges=REDACTED
|
||||
-- SQLNESS REPLACE ,\sfilter=\[[^]]+\]
|
||||
-- SQLNESS REPLACE DynamicFilter\s\[[^\]]*\] DynamicFilter [ REDACTED ]
|
||||
explain analyze select tag from t where num > 6 order by ts desc limit 2;
|
||||
|
||||
drop table t;
|
||||
@@ -121,4 +122,3 @@ SELECT c1, c3 FROM test ORDER BY c3, c1;
|
||||
SELECT c2 FROM test ORDER BY ts;
|
||||
|
||||
drop table test;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user