#!/bin/bash set -euo pipefail # Verify that all the non-unsupported.*parquet files can be loaded and 'SELECT * FROM x LIMIT 1'ed # without segfaulting. load_supported() { file=${1:?must provide file to load} basename=$(basename "$file") cat < /dev/null 2> testcase-err.txt; then echo "...FAILED; check testcase-{out,err}.txt" >&2 exit 1 fi # We expect the 'SELECT 123' command to have been run if ! grep -q 123 testcase-out.txt; then echo "...FAILED; check testcase-{out,err}.txt" >&2 exit 1 fi done < <(echo "$supported_files") } main "$@"