Apache DataFusion SQL Query Engine
Enable TTY during bench data gen (#9626)
Marko Grujic3d130915b418
diff --git a/.github/workflows/pr_benchmarks.yml b/.github/workflows/pr_benchmarks.ymlindex bb691165ca..884e3b6a70 100644--- a/.github/workflows/pr_benchmarks.yml+++ b/.github/workflows/pr_benchmarks.yml@@ -22,6 +22,8 @@ jobs:ref: refs/pull/${{ github.event.issue.number }}/head- name: Setup data and generate unique result names+ # Workaround for `the input device is not a TTY`, appropriated from https://github.com/actions/runner/issues/241+ shell: 'script -q -e -c "bash -e {0}"'run: |cd benchmarksmkdir datadiff --git a/benchmarks/README.md b/benchmarks/README.mdindex 4b4d9eabd4..cb31c47d9b 100644--- a/benchmarks/README.md+++ b/benchmarks/README.md@@ -150,6 +150,8 @@ Benchmark tpch_mem.json└──────────────┴──────────────┴──────────────┴───────────────┘```+Note that you can also execute an automatic comparison of the changes in a given PR against the base+just by including the trigger `/benchmark` in any comment.### Running Benchmarks Manuallydiff --git a/benchmarks/bench.sh b/benchmarks/bench.shindex 5acdde6977..039f4790ac 100755--- a/benchmarks/bench.sh+++ b/benchmarks/bench.sh@@ -280,7 +280,7 @@ data_tpch() {echo " tbl files exist ($FILE exists)."elseecho " creating tbl files with tpch_dbgen..."- docker run -v "${TPCH_DIR}":/data --rm ghcr.io/scalytics/tpch-docker:main -vf -s ${SCALE_FACTOR}+ docker run -v "${TPCH_DIR}":/data -it --rm ghcr.io/scalytics/tpch-docker:main -vf -s ${SCALE_FACTOR}fi# Copy expected answers into the ./data/answers directory if it does not already exist@@ -290,7 +290,7 @@ data_tpch() {elseecho " Copying answers to ${TPCH_DIR}/answers"mkdir -p "${TPCH_DIR}/answers"- docker run -v "${TPCH_DIR}":/data --entrypoint /bin/bash --rm ghcr.io/scalytics/tpch-docker:main -c "cp -f /opt/tpch/2.18.0_rc2/dbgen/answers/* /data/answers/"+ docker run -v "${TPCH_DIR}":/data -it --entrypoint /bin/bash --rm ghcr.io/scalytics/tpch-docker:main -c "cp -f /opt/tpch/2.18.0_rc2/dbgen/answers/* /data/answers/"fi# Create 'parquet' files from tbl