File tree Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Expand file tree Collapse file tree 5 files changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ --plugin-load-add=$HA_COLUMNSTORE_SO
Original file line number Diff line number Diff line change 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 { };
Original file line number Diff line number Diff line change 55# -------------------------------------------------------------- #
66#
77--source ../include/have_columnstore.inc
8+
9+ --source ../include/cross_engine.inc
10+
811#
912USE tpch1;
1013#
@@ -32,3 +35,6 @@ DROP TABLE test.mcol830b;
3235--enable_warnings
3336#
3437
38+
39+ --source ../include/drop_cross_engine.inc
40+
Original file line number Diff line number Diff line change 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+
Original file line number Diff line number Diff line change 1+ -- disable_query_log
2+ REVOKE ALL PRIVILEGES ON * .* FROM ' cejuser' @' localhost' ;
3+ DROP USER ' cejuser' @' localhost' ;
4+ -- enable_query_log
You can’t perform that action at this time.
0 commit comments