From 1606f694cdd8db7298dae40ff30db5b71455d8bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Spo=CC=88rri?= Date: Mon, 20 Mar 2023 14:16:10 +0100 Subject: [PATCH] Add TPC-DS example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pascal SpoĢˆrri --- examples/sql/run_single_query.sh | 3 ++- examples/sql/run_tpcds.sh | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 examples/sql/run_tpcds.sh diff --git a/examples/sql/run_single_query.sh b/examples/sql/run_single_query.sh index 081505a..885d8ed 100755 --- a/examples/sql/run_single_query.sh +++ b/examples/sql/run_single_query.sh @@ -12,7 +12,8 @@ ROOT="$(pwd)" QUERY=$1 SIZE=${SIZE:-1000} TIMESTAMP=$(date -u "+%FT%H%M%SZ") -PROCESS_TAG="${SIZE}-${TIMESTAMP}" +PROCESS_TAG=${PROCESS_TAG:-"sql"} +PROCESS_TAG="${PROCESS_TAG}-${SIZE}-${TIMESTAMP}" # Shuffle on S3 export USE_S3_SHUFFLE=${USE_S3_SHUFFLE:-0} diff --git a/examples/sql/run_tpcds.sh b/examples/sql/run_tpcds.sh new file mode 100755 index 0000000..ae5f902 --- /dev/null +++ b/examples/sql/run_tpcds.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# +# Copyright 2022- IBM Inc. All rights reserved +# SPDX-License-Identifier: Apache-2.0 +# +set -euo pipefail +SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )" +cd "${SCRIPT_DIR}" + +export SIZE=${SIZE:-100} +export PROCESS_TAG=tpcds +./run_single_query.sh tpcds \ No newline at end of file