-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #670 from yaqi-zhao/master
Add Support for oceanbase tpch
- Loading branch information
Showing
9 changed files
with
548 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
export TMP=`pwd`/TMP | ||
mkdir -p $TMP | ||
|
||
echo "BUILD HAMMERDB SCHEMA" | ||
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" | ||
./hammerdbcli auto ./scripts/tcl/oceanbase/tproch/ob_tproch_buildschema.tcl | ||
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" | ||
echo "RUN HAMMERDB TEST" | ||
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" | ||
./hammerdbcli auto ./scripts/tcl/oceanbase/tproch/ob_tproch_run.tcl | ||
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" | ||
echo "DROP HAMMERDB SCHEMA" | ||
./hammerdbcli auto ./scripts/tcl/oceanbase/tproch/ob_tproch_deleteschema.tcl | ||
echo "+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-" | ||
echo "HAMMERDB RESULT" | ||
./hammerdbcli auto ./scripts/tcl/oceanbase/tproch/ob_tproch_result.tcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/tclsh | ||
|
||
puts "SETTING CONFIGURATION" | ||
dbset db mysql | ||
dbset bm TPC-H | ||
|
||
diset connection mysql_host 127.0.0.1 | ||
diset connection mysql_port 2881 | ||
diset connection mysql_socket /tmp/mysql.sock | ||
|
||
diset tpch mysql_scale_fact 1 | ||
diset tpch mysql_num_tpch_threads [ numberOfCPUs ] | ||
diset tpch mysql_tpch_user root | ||
diset tpch mysql_tpch_pass 123 | ||
diset tpch mysql_tpch_dbase tpch | ||
diset tpch mysql_tpch_obcompat true | ||
diset tpch ob_partition_num 1 | ||
diset tpch ob_tenant_name hmdb | ||
diset tpch mysql_tpch_storage_engine innodb | ||
puts "SCHEMA BUILD STARTED" | ||
buildschema | ||
puts "SCHEMA BUILD COMPLETED" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/tclsh | ||
|
||
puts "SETTING CONFIGURATION" | ||
dbset db mysql | ||
dbset bm TPC-H | ||
|
||
diset connection mysql_host 127.0.0.1 | ||
diset connection mysql_port 2881 | ||
diset connection mysql_socket /tmp/mysql.sock | ||
|
||
diset tpch mysql_tpch_user root | ||
diset tpch mysql_tpch_pass 123 | ||
diset tpch mysql_tpch_dbase tpch | ||
diset tpch mysql_tpch_obcompat true | ||
diset tpch ob_partition_num 1 | ||
diset ob_tenant_name hmdb | ||
puts " DROP SCHEMA STARTED" | ||
deleteschema | ||
puts "DROP SCHEMA COMPLETED" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
set tmpdir $::env(TMP) | ||
set ::outputfile $tmpdir/mysql_tproch | ||
source ./scripts/tcl/generic/generic_tproch_result.tcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/tclsh | ||
|
||
set tmpdir $::env(TMP) | ||
puts "SETTING CONFIGURATION" | ||
dbset db mysql | ||
dbset bm TPC-H | ||
|
||
diset mysql_host 127.0.0.1 | ||
diset connection mysql_port 2881 | ||
diset connection mysql_socket /tmp/mysql.sock | ||
|
||
diset tpch mysql_scale_fact 1 | ||
diset tpch mysql_tpch_user root | ||
diset tpch mysql_tpch_pass 123 | ||
diset tpch mysql_tpch_dbase tpch | ||
diset tpch mysql_tpch_obcompat true | ||
diset tpch ob_partition_num 1 | ||
diset tpch ob_tenant_name hmdb | ||
diset tpch mysql_tpch_storage_engine innodb | ||
|
||
loadscript | ||
puts "TEST STARTED" | ||
vuset vu 1 | ||
vucreate | ||
set jobid [ vurun ] | ||
vudestroy | ||
puts "TEST COMPLETE" | ||
set of [ open $tmpdir/mysql_tproch w ] | ||
puts $of $jobid | ||
close $of |
Oops, something went wrong.