File tree 3 files changed +12
-59
lines changed 3 files changed +12
-59
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 16
16
# specific language governing permissions and limitations
17
17
# under the License.
18
18
19
- # set -e
19
+ mkdir -p data/answers 2> /dev/null
20
+
21
+ set -e
20
22
21
23
pushd ..
22
24
. ./dev/build-set-env.sh
23
25
popd
24
26
25
- docker build -f tpchgen.dockerfile -t datafusion-tpchgen:$DATAFUSION_VERSION .
26
-
27
27
# Generate data into the ./data directory if it does not already exist
28
28
FILE=./data/supplier.tbl
29
29
if test -f " $FILE " ; then
30
30
echo " $FILE exists."
31
31
else
32
- mkdir data 2> /dev/null
33
- docker run -v ` pwd` /data:/data -it --rm datafusion-tpchgen:$DATAFUSION_VERSION $1
32
+ docker run -v ` pwd` /data:/data -it --rm ghcr.io/databloom-ai/tpch-docker:main -vf -s $1
34
33
ls -l data
34
+ fi
35
+
36
+ # Copy expected answers (at SF=1) into the ./data/answers directory if it does not already exist
37
+ FILE=./data/answers/q1.out
38
+ if test -f " $FILE " ; then
39
+ echo " $FILE exists."
40
+ else
41
+ docker run -v ` pwd` /data:/data -it --entrypoint /bin/bash --rm ghcr.io/databloom-ai/tpch-docker:main -c " cp /opt/tpch/2.18.0_rc2/dbgen/answers/* /data/answers/"
35
42
fi
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments