Skip to content

Commit

Permalink
Add TPC-DS example
Browse files Browse the repository at this point in the history
Signed-off-by: Pascal Spörri <[email protected]>
  • Loading branch information
pspoerri committed Mar 20, 2023
1 parent 5cd2770 commit 1606f69
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/sql/run_single_query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
12 changes: 12 additions & 0 deletions examples/sql/run_tpcds.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1606f69

Please sign in to comment.