From a091a5655c9cc2c2d2f015d02223f4a49106595f Mon Sep 17 00:00:00 2001 From: Alexey Milovidov Date: Mon, 27 Jun 2022 04:04:53 +0200 Subject: [PATCH] Compatible benchmark --- benchmark/compatible/cratedb/benchmark.sh | 6 +++--- benchmark/compatible/vertica/benchmark.sh | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/benchmark/compatible/cratedb/benchmark.sh b/benchmark/compatible/cratedb/benchmark.sh index d05772f2181..033ed0dfe01 100755 --- a/benchmark/compatible/cratedb/benchmark.sh +++ b/benchmark/compatible/cratedb/benchmark.sh @@ -7,11 +7,11 @@ sudo apt-get install -y postgresql-client psql -U crate -h localhost --no-password -t -c 'SELECT 1' -wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.tsv.gz' -gzip -d hits.tsv.gz +wget --continue 'https://datasets.clickhouse.com/hits_compatible/hits.csv.gz' +gzip -d hits.csv.gz 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. # COPY 0 diff --git a/benchmark/compatible/vertica/benchmark.sh b/benchmark/compatible/vertica/benchmark.sh index 9ece8ab3428..160f7dfc3be 100644 --- a/benchmark/compatible/vertica/benchmark.sh +++ b/benchmark/compatible/vertica/benchmark.sh @@ -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' 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'"