You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
438 B
25 lines
438 B
#!/bin/bash
|
|
|
|
PWD=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
|
|
source $PWD/../functions.sh
|
|
|
|
set -e
|
|
|
|
query_id=1
|
|
|
|
rm -f $PWD/../05_sql/*.tpch.*.sql
|
|
|
|
cd $PWD/queries
|
|
|
|
for i in $(ls $PWD/*.sql | xargs -n 1 basename); do
|
|
q=$(echo $i | awk -F '.' '{print $1}')
|
|
id=$(printf %02d $q)
|
|
file_id="1""$id"
|
|
filename=$file_id.tpch.$id.sql
|
|
|
|
echo "./qgen $q >> $PWD/../../05_sql/$filename"
|
|
./qgen $q >> $PWD/../../05_sql/$filename
|
|
done
|
|
|
|
cd ..
|
|
|
|
|