Skip to content

Commit 248810c

Browse files
committed
Remove materialized result
1 parent 755bbc8 commit 248810c

13 files changed

+24
-132
lines changed

doris/create_and_load.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
#!/bin/bash
22

33
# Check if the required arguments are provided
4-
if [[ $# -lt 7 ]]; then
5-
echo "Usage: $0 <DB_NAME> <TABLE_NAME> <DDL_FILE> <DATA_DIRECTORY> <NUM_FILES> <SUCCESS_LOG> <ERROR_LOG>"
4+
if [[ $# -lt 6 ]]; then
5+
echo "Usage: $0 <DB_NAME> <TABLE_NAME> <DATA_DIRECTORY> <NUM_FILES> <SUCCESS_LOG> <ERROR_LOG>"
66
exit 1
77
fi
88

99
# Arguments
1010
DB_NAME="$1"
1111
TABLE_NAME="$2"
12-
DDL_FILE="$3"
13-
DATA_DIRECTORY="$4"
14-
NUM_FILES="$5"
15-
SUCCESS_LOG="$6"
16-
ERROR_LOG="$7"
12+
DATA_DIRECTORY="$3"
13+
NUM_FILES="$4"
14+
SUCCESS_LOG="$5"
15+
ERROR_LOG="$6"
1716

1817
# Validate arguments
19-
[[ ! -f "$DDL_FILE" ]] && { echo "Error: DDL file '$DDL_FILE' does not exist."; exit 1; }
2018
[[ ! -d "$DATA_DIRECTORY" ]] && { echo "Error: Data directory '$DATA_DIRECTORY' does not exist."; exit 1; }
2119
[[ ! "$NUM_FILES" =~ ^[0-9]+$ ]] && { echo "Error: NUM_FILES must be a positive integer."; exit 1; }
2220

@@ -25,7 +23,7 @@ echo "Create database"
2523
mysql -P 9030 -h 127.0.0.1 -u root -e "CREATE DATABASE IF NOT EXISTS $DB_NAME"
2624

2725
echo "Execute DDL"
28-
mysql -P 9030 -h 127.0.0.1 -u root $DB_NAME < "$DDL_FILE"
26+
mysql -P 9030 -h 127.0.0.1 -u root $DB_NAME < "ddl.sql"
2927

3028
echo "Load data"
3129
./load_data.sh "$DATA_DIRECTORY" "$DB_NAME" "$TABLE_NAME" "$NUM_FILES" "$SUCCESS_LOG" "$ERROR_LOG"
File renamed without changes.

doris/ddl_materialized.sql

Lines changed: 0 additions & 13 deletions
This file was deleted.

doris/main.sh

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -41,46 +41,37 @@ fi;
4141

4242
benchmark() {
4343
local size=$1
44-
local suffix=$2
4544
# Check DATA_DIRECTORY contains the required number of files to run the benchmark
4645
file_count=$(find "$DATA_DIRECTORY" -type f | wc -l)
4746
if (( file_count < size )); then
4847
echo "Error: Not enough files in '$DATA_DIRECTORY'. Required: $size, Found: $file_count."
4948
exit 1
5049
fi
51-
./create_and_load.sh "bluesky_${size}m_${suffix}" bluesky "ddl_${suffix}.sql" "$DATA_DIRECTORY" "$size" "$SUCCESS_LOG" "$ERROR_LOG"
52-
./total_size.sh "bluesky_${size}m_${suffix}" bluesky | tee "${OUTPUT_PREFIX}_bluesky_${size}m_${suffix}.total_size"
53-
./count.sh "bluesky_${size}m_${suffix}" bluesky | tee "${OUTPUT_PREFIX}_bluesky_${size}m_${suffix}.count"
54-
./benchmark.sh "bluesky_${size}m_${suffix}" "${OUTPUT_PREFIX}_bluesky_${size}m_${suffix}.results_runtime" "queries_${suffix}.sql"
55-
./drop_table.sh "bluesky_${size}m_${suffix}" bluesky
50+
./create_and_load.sh "bluesky_${size}m" bluesky "$DATA_DIRECTORY" "$size" "$SUCCESS_LOG" "$ERROR_LOG"
51+
./total_size.sh "bluesky_${size}m" bluesky | tee "${OUTPUT_PREFIX}_bluesky_${size}m.total_size"
52+
./count.sh "bluesky_${size}m" bluesky | tee "${OUTPUT_PREFIX}_bluesky_${size}m.count"
53+
./benchmark.sh "bluesky_${size}m" "${OUTPUT_PREFIX}_bluesky_${size}m.results_runtime" "queries.sql"
54+
./drop_table.sh "bluesky_${size}m" bluesky
5655
}
5756

5857
case $CHOICE in
5958
2)
60-
benchmark 10 default
61-
benchmark 10 materialized
59+
benchmark 10
6260
;;
6361
3)
64-
benchmark 100 default
65-
benchmark 100 materialized
62+
benchmark 100
6663
;;
6764
4)
68-
benchmark 1000 default
69-
benchmark 1000 materialized
65+
benchmark 1000
7066
;;
7167
5)
72-
benchmark 1 default
73-
benchmark 1 materialized
74-
benchmark 10 default
75-
benchmark 10 materialized
76-
benchmark 100 default
77-
benchmark 100 materialized
78-
benchmark 1000 default
79-
benchmark 1000 materialized
68+
benchmark 1
69+
benchmark 10
70+
benchmark 100
71+
benchmark 1000
8072
;;
8173
*)
82-
benchmark 1 default
83-
benchmark 1 materialized
74+
benchmark 1
8475
;;
8576
esac
8677

File renamed without changes.

doris/results/m6i.8xlarge_bluesky_1000m_default.json renamed to doris/results/m6i.8xlarge_bluesky_1000m.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"system": "Apache Doris (default)",
2+
"system": "Apache Doris",
33
"version": "doris-3.0.5-rc01-e277cfb83f",
44
"os": "Ubuntu 24.04",
55
"date": "2025-05-13",

doris/results/m6i.8xlarge_bluesky_1000m_materialized.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

doris/results/m6i.8xlarge_bluesky_100m_default.json renamed to doris/results/m6i.8xlarge_bluesky_100m.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"system": "Apache Doris (default)",
2+
"system": "Apache Doris",
33
"version": "doris-3.0.5-rc01-e277cfb83f",
44
"os": "Ubuntu 24.04",
55
"date": "2025-05-13",

doris/results/m6i.8xlarge_bluesky_100m_materialized.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

doris/results/m6i.8xlarge_bluesky_10m_default.json renamed to doris/results/m6i.8xlarge_bluesky_10m.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"system": "Apache Doris (default)",
2+
"system": "Apache Doris",
33
"version": "doris-3.0.5-rc01-e277cfb83f",
44
"os": "Ubuntu 24.04",
55
"date": "2025-05-13",

0 commit comments

Comments
 (0)