Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
924060929 committed Jan 3, 2025
1 parent 00d0e50 commit 47634cc
Showing 1 changed file with 16 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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")
}

0 comments on commit 47634cc

Please sign in to comment.