Skip to content

Commit

Permalink
Merge pull request #221 from ClickHouse/alexey-milovidov-patch-5
Browse files Browse the repository at this point in the history
Update hardware.sh for Mac OS X
  • Loading branch information
alexey-milovidov authored Sep 8, 2024
2 parents 610f82d + f794e54 commit 2e33415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hardware/hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ if [[ $(./clickhouse client --query "EXISTS hits") == '1' && $(./clickhouse clie
echo "Dataset already downloaded"
else
echo "Will download the dataset"
./clickhouse client --receive_timeout 1000 --max_insert_threads $(nproc || 4) --progress --query "
./clickhouse client --receive_timeout 1000 --max_insert_threads $(nproc || sysctl -n hw.logicalcpu || echo 4) --progress --query "
CREATE OR REPLACE TABLE hits ENGINE = MergeTree PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID), EventTime)
AS SELECT * FROM url('https://datasets.clickhouse.com/hits/native/hits_100m_obfuscated_{0..255}.native.zst')"

Expand Down

0 comments on commit 2e33415

Please sign in to comment.