Skip to content

Commit b7941dc

Browse files
authored
Merge pull request #816 from ClickHouse/revert-fix-ch-datalake
Revert "Work around https://github.com/ClickHouse/ClickHouse/issues/9…
2 parents eeb3e2d + 78885d5 commit b7941dc

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

clickhouse-datalake-partitioned/benchmark.sh

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

3+
# Install
4+
35
curl https://clickhouse.com/ | sh
46

7+
# Configure
8+
9+
> clickhouse-local.yaml echo "
10+
filesystem_caches:
11+
cache:
12+
path: '/dev/shm/clickhouse/'
13+
max_size_ratio_to_total_space: 0.9
14+
"
15+
16+
# Run the queries
17+
518
./run.sh
619

720
echo "Load time: 0"

clickhouse-datalake-partitioned/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cat queries.sql | while read -r query; do
99

1010
echo -n "["
1111
for i in $(seq 1 $TRIES); do
12-
RES=$(./clickhouse local --path . --time --format Null --query="$query" 2>&1) # (*)
12+
RES=$(./clickhouse local --path . --time --format Null --filesystem_cache_name cache --query="$query" 2>&1) # (*)
1313
[[ "$?" == "0" ]] && echo -n "${RES}" || echo -n "null"
1414
[[ "$i" != $TRIES ]] && echo -n ", "
1515

clickhouse-datalake/benchmark.sh

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

3+
# Install
4+
35
curl https://clickhouse.com/ | sh
46

7+
# Configure
8+
9+
> clickhouse-local.yaml echo "
10+
filesystem_caches:
11+
cache:
12+
path: '/dev/shm/clickhouse/'
13+
max_size_ratio_to_total_space: 0.9
14+
"
15+
16+
# Run the queries
17+
518
./run.sh
619

720
echo "Load time: 0"

clickhouse-datalake/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ cat queries.sql | while read -r query; do
99

1010
echo -n "["
1111
for i in $(seq 1 $TRIES); do
12-
RES=$(./clickhouse local --path . --time --format Null --query="$query" 2>&1) # (*)
12+
RES=$(./clickhouse local --path . --time --format Null --filesystem_cache_name cache --query="$query" 2>&1) # (*)
1313
[[ "$?" == "0" ]] && echo -n "${RES}" || echo -n "null"
1414
[[ "$i" != $TRIES ]] && echo -n ", "
1515

0 commit comments

Comments
 (0)