Skip to content

Commit 4f3ed2a

Browse files
fix(mtr): MCOL-5756, fix extended mtr tests
1 parent 55241e6 commit 4f3ed2a

File tree

5 files changed

+68
-0
lines changed

5 files changed

+68
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
--plugin-load-add=$HA_COLUMNSTORE_SO
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package My::Suite::ColumnStore;
2+
3+
@ISA = qw(My::Suite);
4+
5+
my $mcs_bin_dir_compiled=$::bindir . '/storage/columnstore/columnstore/bin';
6+
my $mcs_ins_dir_installed=$::bindir . '/bin';
7+
8+
if (-d $mcs_bin_dir_compiled)
9+
{
10+
$ENV{MCS_MCSSETCONFIG}=$mcs_bin_dir_compiled . "/mcsSetConfig";
11+
$ENV{MCS_CPIMPORT}=$mcs_bin_dir_compiled . "/cpimport";
12+
$ENV{MCS_SYSCATALOG_MYSQL_SQL}=$::mysqld_variables{'basedir'} . "/storage/columnstore/columnstore/dbcon/mysql/syscatalog_mysql.sql";
13+
}
14+
elsif (-d $mcs_ins_dir_installed)
15+
{
16+
$ENV{MCS_MCSSETCONFIG}=$mcs_ins_dir_installed . "/mcsSetConfig";
17+
$ENV{MCS_CPIMPORT}=$mcs_ins_dir_installed . "/cpimport";
18+
$ENV{MCS_SYSCATALOG_MYSQL_SQL}=$::mysqld_variables{'basedir'} . "/share/columnstore/syscatalog_mysql.sql";
19+
}
20+
21+
sub is_default { 0 }
22+
23+
sub start_test {
24+
# we should guard this for --force-restart flag condition.
25+
my ($self, $tinfo)= @_;
26+
My::Suite::start_test(@_);
27+
}
28+
29+
bless { };

mysql-test/columnstore/devregression/t/mcs7238_regression_MCOL-830.test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
# -------------------------------------------------------------- #
66
#
77
--source ../include/have_columnstore.inc
8+
9+
--source ../include/cross_engine.inc
10+
811
#
912
USE tpch1;
1013
#
@@ -32,3 +35,6 @@ DROP TABLE test.mcol830b;
3235
--enable_warnings
3336
#
3437

38+
39+
--source ../include/drop_cross_engine.inc
40+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# -------------------------------------------------------------- #
2+
# Enable cross engine join
3+
# Configure user and password in Columnstore.xml file
4+
# -------------------------------------------------------------- #
5+
6+
--disable_query_log
7+
if (!$MASTER_MYPORT)
8+
{
9+
# Running with --extern
10+
let $MASTER_MYPORT=`SELECT @@port`;
11+
}
12+
13+
--exec $MCS_MCSSETCONFIG CrossEngineSupport User 'cejuser'
14+
--exec $MCS_MCSSETCONFIG CrossEngineSupport Password 'Vagrant1|0000001'
15+
--exec $MCS_MCSSETCONFIG CrossEngineSupport Port $MASTER_MYPORT
16+
17+
# -------------------------------------------------------------- #
18+
# Create corresponding in the server
19+
# -------------------------------------------------------------- #
20+
21+
--disable_warnings
22+
CREATE USER IF NOT EXISTS'cejuser'@'localhost' IDENTIFIED BY 'Vagrant1|0000001';
23+
--enable_warnings
24+
25+
GRANT ALL PRIVILEGES ON *.* TO 'cejuser'@'localhost';
26+
FLUSH PRIVILEGES;
27+
--enable_query_log
28+
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
--disable_query_log
2+
REVOKE ALL PRIVILEGES ON *.* FROM 'cejuser'@'localhost';
3+
DROP USER 'cejuser'@'localhost';
4+
--enable_query_log

0 commit comments

Comments
 (0)