Compatible benchmark

This commit is contained in:
Alexey Milovidov 2022-06-27 04:04:53 +02:00
parent 486cc06880
commit a091a5655c
2 changed files with 7 additions and 3 deletions

View File

@ -7,11 +7,11 @@ sudo apt-get install -y postgresql-client
psql -U crate -h localhost --no-password -t -c 'SELECT 1' psql -U crate -h localhost --no-password -t -c 'SELECT 1'
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.csv.gz'
gzip -d hits.tsv.gz gzip -d hits.csv.gz
psql -U crate -h localhost --no-password -t < create.sql psql -U crate -h localhost --no-password -t < create.sql
psql -U crate -h localhost --no-password -t -c '\timing' -c "COPY hits FROM 'file:///$(pwd)/hits.tsv'" psql -U crate -h localhost --no-password -t -c '\timing' -c "COPY hits FROM 'file:///$(pwd)/hits.csv'"
# It failed to load the data. # It failed to load the data.
# COPY 0 # COPY 0

View File

@ -9,3 +9,7 @@ sudo docker exec vertica /opt/vertica/bin/vsql -U dbadmin -c "$(cat create.sql)"
wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz'
gzip -d hits.tsv.gz gzip -d hits.tsv.gz
sudo docker cp hits.tsv vertica:/hits.tsv
time sudo docker exec vertica /opt/vertica/bin/vsql -U dbadmin -c "COPY hits FROM '/hits.tsv' DELIMITER E'\\t'"