From 8fff252ec2f42293b26c67adfabdc1a575b8313d Mon Sep 17 00:00:00 2001 From: 924060929 <924060929@qq.com> Date: Mon, 5 Aug 2024 15:31:32 +0800 Subject: [PATCH] add show variable --- regression-test/suites/nereids_syntax_p0/match.groovy | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/regression-test/suites/nereids_syntax_p0/match.groovy b/regression-test/suites/nereids_syntax_p0/match.groovy index b49d88b105ebbb..57e1dc82b45ae4 100644 --- a/regression-test/suites/nereids_syntax_p0/match.groovy +++ b/regression-test/suites/nereids_syntax_p0/match.groovy @@ -1,3 +1,5 @@ +import java.util.stream.Collectors + // Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information @@ -186,6 +188,12 @@ suite("match") { contains("INNER JOIN") } + def variables = sql "show variables" + def variableString = variables.stream() + .map { it.toString() } + .collect(Collectors.joining("\n")) + logger.info("Variables:\n${variableString}") + order_qt_match_join """ select * from test_nereids_match_select a