From d48efada528a4003d80ec3e52af4ab6b5b5f5e58 Mon Sep 17 00:00:00 2001 From: Ruihang Xia Date: Fri, 20 Sep 2024 18:48:12 +0800 Subject: [PATCH] tune sqlness replace interceptor Signed-off-by: Ruihang Xia --- tests/cases/standalone/common/order/order_by.result | 5 +++-- tests/cases/standalone/common/order/order_by.sql | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/cases/standalone/common/order/order_by.result b/tests/cases/standalone/common/order/order_by.result index 0d85913b21e7..f6385537c3b8 100644 --- a/tests/cases/standalone/common/order/order_by.result +++ b/tests/cases/standalone/common/order/order_by.result @@ -286,6 +286,7 @@ select tag from t where num > 6 order by ts; -- SQLNESS REPLACE (peers.*) REDACTED -- SQLNESS REPLACE (metrics.*) REDACTED -- SQLNESS REPLACE region=\d+\(\d+,\s+\d+\) region=REDACTED +-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED explain analyze select tag from t where num > 6 order by ts desc limit 2; +-+-+-+ @@ -302,7 +303,7 @@ explain analyze select tag from t where num > 6 order by ts desc limit 2; |_|_|_ProjectionExec: expr=[tag@0 as tag, ts@1 as ts] REDACTED |_|_|_CoalesceBatchesExec: target_batch_size=8192 REDACTED |_|_|_FilterExec: num@2 > 6 REDACTED -|_|_|_RepartitionExec: partitioning=RoundRobinBatch(32), input_partitions=1 REDACTED +|_|_|_RepartitionExec: partitioning=REDACTED |_|_|_SeqScan: region=REDACTED, partition_count=1 (1 memtable ranges, 0 file 0 ranges) REDACTED |_|_|_| | 1_| 1_|_GlobalLimitExec: skip=0, fetch=2 REDACTED @@ -311,7 +312,7 @@ explain analyze select tag from t where num > 6 order by ts desc limit 2; |_|_|_ProjectionExec: expr=[tag@0 as tag, ts@1 as ts] REDACTED |_|_|_CoalesceBatchesExec: target_batch_size=8192 REDACTED |_|_|_FilterExec: num@2 > 6 REDACTED -|_|_|_RepartitionExec: partitioning=RoundRobinBatch(32), input_partitions=1 REDACTED +|_|_|_RepartitionExec: partitioning=REDACTED |_|_|_SeqScan: region=REDACTED, partition_count=1 (1 memtable ranges, 0 file 0 ranges) REDACTED |_|_|_| |_|_| Total rows: 2_| diff --git a/tests/cases/standalone/common/order/order_by.sql b/tests/cases/standalone/common/order/order_by.sql index fa71405c0cd8..6e140e5c0420 100644 --- a/tests/cases/standalone/common/order/order_by.sql +++ b/tests/cases/standalone/common/order/order_by.sql @@ -93,6 +93,7 @@ select tag from t where num > 6 order by ts; -- SQLNESS REPLACE (peers.*) REDACTED -- SQLNESS REPLACE (metrics.*) REDACTED -- SQLNESS REPLACE region=\d+\(\d+,\s+\d+\) region=REDACTED +-- SQLNESS REPLACE (RoundRobinBatch.*) REDACTED explain analyze select tag from t where num > 6 order by ts desc limit 2; drop table t;