From 47634cc4e9e71ba005b85589488dc6d8bb1bcc9c Mon Sep 17 00:00:00 2001 From: 924060929 Date: Fri, 3 Jan 2025 14:38:25 +0800 Subject: [PATCH] fix --- .../sql/test_windowSpecificationABA.groovy | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/regression-test/suites/query_p0/sql_functions/window_functions/sql/test_windowSpecificationABA.groovy b/regression-test/suites/query_p0/sql_functions/window_functions/sql/test_windowSpecificationABA.groovy index 1aa8496124ca596..9051017283449f7 100644 --- a/regression-test/suites/query_p0/sql_functions/window_functions/sql/test_windowSpecificationABA.groovy +++ b/regression-test/suites/query_p0/sql_functions/window_functions/sql/test_windowSpecificationABA.groovy @@ -23,12 +23,12 @@ import java.util.concurrent.atomic.AtomicReference import java.util.stream.Collectors suite("test_test_windowSpecificationABA") { - - def uuid = UUID.randomUUID().toString() - def result = new AtomicReference() - profile(uuid) { - run { - result.set(sql """ + for (def i in 0..5) { + def uuid = UUID.randomUUID().toString() + def result = new AtomicReference() + profile(uuid) { + run { + result.set(sql """ select /* ${uuid} */ * from ( select @@ -41,17 +41,18 @@ suite("test_test_windowSpecificationABA") { )as t order by suppkey, orderkey """ - ) - } + ) + } - check { p, e -> - logger.info("result:\n${result.get().stream().map {it.toString() }.collect(Collectors.joining("\n"))}") - if (e != null) { - throw e - } else { - logger.info("profile:\n${p}") - throw new IllegalStateException("OK") + check { p, e -> + logger.info("result:\n${result.get().stream().map {it.toString() }.collect(Collectors.joining("\n"))}") + if (e != null) { + throw e + } else { + logger.info("profile:\n${p}") + } } } } + throw new IllegalStateException("OK") } \ No newline at end of file