From 60619e73e26ef919b21e83a60dfd7a4a84d09ac3 Mon Sep 17 00:00:00 2001 From: jeremyhi Date: Fri, 10 Jul 2026 12:21:23 +0800 Subject: [PATCH] fix: apply sqlness replacement to inspect explain Signed-off-by: jeremyhi --- tests/cases/distributed/information_schema/ssts_limit.result | 4 ++-- tests/cases/distributed/information_schema/ssts_limit.sql | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/cases/distributed/information_schema/ssts_limit.result b/tests/cases/distributed/information_schema/ssts_limit.result index 8629afd5312..91789bb9d94 100644 --- a/tests/cases/distributed/information_schema/ssts_limit.result +++ b/tests/cases/distributed/information_schema/ssts_limit.result @@ -1,4 +1,3 @@ --- SQLNESS REPLACE (RoundRobinBatch\(\d+\)) RoundRobinBatch(REDACTED) CREATE TABLE ssts_limit_case ( a INT PRIMARY KEY INVERTED INDEX, b STRING SKIPPING INDEX, @@ -64,6 +63,7 @@ FROM ( | 1 | +-----------------------+ +-- SQLNESS REPLACE (RoundRobinBatch\(\d+\)) RoundRobinBatch(REDACTED) EXPLAIN SELECT COUNT(*) AS filtered_limited_rows FROM ( SELECT region_id @@ -89,7 +89,7 @@ FROM ( | | AggregateExec: mode=Partial, gby=[], aggr=[count(Int64(1))] | | | CoalescePartitionsExec: fetch=1 | | | FilterExec: table_id@0 > 0, projection=[], fetch=1 | -| | RepartitionExec: partitioning=RoundRobinBatch(10), input_partitions=1 | +| | RepartitionExec: partitioning=RoundRobinBatch(REDACTED), input_partitions=1 | | | DistributedInspectExec: kind=SstManifest, scan=ScanRequest { projection: ProjectionInput { projection: [2], nested_paths: [] }, filters: [table_id > UInt32(0)] }, schema=Schema { fields: [Field { name: "table_id", data_type: UInt32 }], metadata: {"greptime:version": "0"} } | | | | +---------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ diff --git a/tests/cases/distributed/information_schema/ssts_limit.sql b/tests/cases/distributed/information_schema/ssts_limit.sql index d1e227fc618..b9d7b2818fa 100644 --- a/tests/cases/distributed/information_schema/ssts_limit.sql +++ b/tests/cases/distributed/information_schema/ssts_limit.sql @@ -1,5 +1,3 @@ --- SQLNESS REPLACE (RoundRobinBatch\(\d+\)) RoundRobinBatch(REDACTED) - CREATE TABLE ssts_limit_case ( a INT PRIMARY KEY INVERTED INDEX, b STRING SKIPPING INDEX, @@ -37,6 +35,7 @@ FROM ( LIMIT 1 ); +-- SQLNESS REPLACE (RoundRobinBatch\(\d+\)) RoundRobinBatch(REDACTED) EXPLAIN SELECT COUNT(*) AS filtered_limited_rows FROM ( SELECT region_id