diff --git a/regression-test/data/variable_p0/set_and_unset_variable.out b/regression-test/data/variable_p0/set_and_unset_variable.out deleted file mode 100644 index 506542ea754557..00000000000000 --- a/regression-test/data/variable_p0/set_and_unset_variable.out +++ /dev/null @@ -1,193 +0,0 @@ --- This file is automatically generated. You should know what you did if you want to edit this --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -wait_timeout 1000 28800 1 - --- !cmd -- -0 - --- !cmd -- -wait_timeout 28800 28800 0 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type BLOOM_FILTER IN_OR_BLOOM_FILTER,MIN_MAX 1 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type BLOOM_FILTER IN_OR_BLOOM_FILTER,MIN_MAX 1 - --- !cmd -- -runtime_filter_type BLOOM_FILTER IN_OR_BLOOM_FILTER,MIN_MAX 1 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -0 - --- !cmd -- -experimental_enable_agg_state true false 1 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -0 - --- !cmd -- -experimental_enable_agg_state true false 1 - --- !cmd -- -experimental_enable_agg_state true false 1 - --- !cmd -- -0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -0 - --- !cmd -- -deprecated_enable_local_exchange false true 1 - --- !cmd -- -deprecated_enable_local_exchange true true 0 - --- !cmd -- -0 - --- !cmd -- -deprecated_enable_local_exchange true true 0 - --- !cmd -- -deprecated_enable_local_exchange true true 0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -deprecated_enable_local_exchange true true 0 - --- !cmd -- -show_hidden_columns false false 0 - --- !cmd -- -show_hidden_columns false false 0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -0 - --- !cmd -- -runtime_filter_type IN_OR_BLOOM_FILTER,MIN_MAX IN_OR_BLOOM_FILTER,MIN_MAX 0 - --- !cmd -- -experimental_enable_agg_state false false 0 - --- !cmd -- -deprecated_enable_local_exchange true true 0 - --- !cmd -- -show_hidden_columns false false 0 - --- !cmd -- -show_hidden_columns false false 0 - --- !cmd -- -read_only true true 0 - --- !cmd -- -0 - --- !cmd -- -read_only true true 0 - --- !cmd -- -read_only true true 0 - --- !cmd -- -super_read_only true true 0 - --- !cmd -- -0 - --- !cmd -- -super_read_only true true 0 - --- !cmd -- -super_read_only true true 0 - diff --git a/regression-test/suites/variable_p0/set_and_unset_variable.groovy b/regression-test/suites/variable_p0/set_and_unset_variable.groovy deleted file mode 100644 index f29a56bd6d0132..00000000000000 --- a/regression-test/suites/variable_p0/set_and_unset_variable.groovy +++ /dev/null @@ -1,112 +0,0 @@ -// 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 -// regarding copyright ownership. The ASF licenses this file -// to you under the Apache License, Version 2.0 (the -// "License"); you may not use this file except in compliance -// with the License. You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, -// software distributed under the License is distributed on an -// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -// KIND, either express or implied. See the License for the -// specific language governing permissions and limitations -// under the License. - -suite("set_and_unset_variable", "nonConcurrent") { - qt_cmd """UNSET VARIABLE ALL""" - qt_cmd """UNSET global VARIABLE ALL""" - - qt_cmd """set wait_timeout = 1000""" - qt_cmd """show variables like 'wait_timeout'""" - qt_cmd """UNSET VARIABLE wait_timeout""" - qt_cmd """show variables like 'wait_timeout'""" - - qt_cmd """set runtime_filter_type='BLOOM_FILTER'""" - qt_cmd """show session variables like 'runtime_filter_type'""" - qt_cmd """show global variables like 'runtime_filter_type'""" - qt_cmd """UNSET VARIABLE runtime_filter_type""" - qt_cmd """show session variables like 'runtime_filter_type'""" - qt_cmd """show global variables like 'runtime_filter_type'""" - - qt_cmd """set global runtime_filter_type='BLOOM_FILTER'""" - qt_cmd """show session variables like 'runtime_filter_type'""" - qt_cmd """show global variables like 'runtime_filter_type'""" - qt_cmd """UNSET global VARIABLE runtime_filter_type""" - qt_cmd """show session variables like 'runtime_filter_type'""" - qt_cmd """show global variables like 'runtime_filter_type'""" - - // test variables with experimental_ prefix in session scope - qt_cmd """set experimental_enable_agg_state='true'""" - qt_cmd """show session variables like 'experimental_enable_agg_state'""" - qt_cmd """show global variables like 'experimental_enable_agg_state'""" - qt_cmd """UNSET VARIABLE experimental_enable_agg_state""" - qt_cmd """show session variables like 'experimental_enable_agg_state'""" - qt_cmd """show global variables like 'experimental_enable_agg_state'""" - - // test variables with experimental_ prefix in global scope - qt_cmd """set global experimental_enable_agg_state='true'""" - qt_cmd """show session variables like 'experimental_enable_agg_state'""" - qt_cmd """show global variables like 'experimental_enable_agg_state'""" - qt_cmd """UNSET global VARIABLE experimental_enable_agg_state""" - qt_cmd """show session variables like 'experimental_enable_agg_state'""" - qt_cmd """show global variables like 'experimental_enable_agg_state'""" - - // test variables with deprecated_ prefix - qt_cmd """set deprecated_enable_local_exchange = false""" - qt_cmd """show session variables like 'deprecated_enable_local_exchange'""" - qt_cmd """show global variables like 'deprecated_enable_local_exchange'""" - qt_cmd """UNSET global VARIABLE deprecated_enable_local_exchange""" - qt_cmd """show session variables like 'deprecated_enable_local_exchange'""" - qt_cmd """show global variables like 'deprecated_enable_local_exchange'""" - - // test UNSET VARIABLE ALL - qt_cmd """set runtime_filter_type='BLOOM_FILTER'""" - qt_cmd """set experimental_enable_agg_state='true'""" - qt_cmd """set deprecated_enable_local_exchange = false""" - qt_cmd """set show_hidden_columns=true""" - qt_cmd """UNSET VARIABLE ALL""" - qt_cmd """show session variables like 'runtime_filter_type'""" - qt_cmd """show session variables like 'experimental_enable_agg_state'""" - qt_cmd """show session variables like 'deprecated_enable_local_exchange'""" - qt_cmd """show session variables like 'show_hidden_columns'""" - - qt_cmd """select * from information_schema.session_variables where variable_name = 'show_hidden_columns'""" - - // test UNSET GLOBAL VARIABLE ALL - qt_cmd """set global runtime_filter_type='BLOOM_FILTER'""" - qt_cmd """set global experimental_enable_agg_state='true'""" - qt_cmd """set global deprecated_enable_local_exchange = false""" - qt_cmd """set show_hidden_columns=true""" - qt_cmd """UNSET global VARIABLE ALL""" - qt_cmd """show global variables like 'runtime_filter_type'""" - qt_cmd """show global variables like 'experimental_enable_agg_state'""" - qt_cmd """show global variables like 'deprecated_enable_local_exchange'""" - qt_cmd """show global variables like 'show_hidden_columns'""" - - qt_cmd """select * from information_schema.global_variables where variable_name = 'show_hidden_columns'""" - - // test read_only - qt_cmd """show variables like 'read_only'""" - test { - sql "set read_only=true" - exception "should be set with SET GLOBAL" - } - qt_cmd "set global read_only=true" - qt_cmd """show global variables like 'read_only'""" - qt_cmd """show variables like 'read_only'""" - sql "set global read_only=false" - - // test super_read_only - qt_cmd """show variables like 'super_read_only'""" - test { - sql "set super_read_only=true" - exception "should be set with SET GLOBAL" - } - qt_cmd "set global super_read_only=true" - qt_cmd """show global variables like 'super_read_only'""" - qt_cmd """show variables like 'super_read_only'""" - sql "set global super_read_only=false" -}