Skip to content

Commit 7906dae

Browse files
authored
fix(isthmus-cli): fix tpch_smoke.sh test script (#450)
Signed-off-by: Niels Pardon <[email protected]>
1 parent ec76720 commit 7906dae

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

isthmus-cli/src/test/script/tpch_smoke.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,14 @@ TPCH="../../../../isthmus/src/test/resources/tpch"
1111
DDL=$(cat ${TPCH}/schema.sql)
1212
QUERY_FOLDER="${TPCH}/queries"
1313

14-
##for QUERYNUM in {1..22}; do
15-
# TODO: failed query: 8 12 15. 15 failed due to comments
16-
QUERY_TO_RUN=(1 2 3 4 5 6 7 9 10 11 13 14 16 17 18 19 20 21 22)
17-
for QUERY_NUM in "${QUERY_TO_RUN[@]}"; do
18-
if [ "${QUERY_NUM}" -lt 10 ]; then
14+
for QUERY_NUM in {1..22}; do
15+
if [ "${QUERY_NUM}" -lt 10 ]; then
1916
QUERY=$(cat "${QUERY_FOLDER}/0${QUERY_NUM}.sql")
2017
else
2118
QUERY=$(cat "${QUERY_FOLDER}/${QUERY_NUM}.sql")
2219
fi
2320

2421
echo "Processing tpc-h query ${QUERY_NUM}"
2522
echo "${QUERY}"
26-
$CMD "${QUERY}" --create "${DDL}"
23+
$CMD --create "${DDL}" -- "${QUERY}"
2724
done

0 commit comments

Comments
 (0)