#!/bin/bash set -euo pipefail # Verify that all the unsupported.*parquet files result in an error when creating the virtual table, # but don't segfault. load_unsupported() { file=${1:?must provide file to load} basename=$(basename "$file") cat < /dev/null 2> testcase-err.txt # We expect the 'SELECT 123' command to NOT have been run if grep -q 123 testcase-out.txt; then echo "...FAILED; expected an error message. Check testcase-{out,err}.txt" >&2 exit 1 fi done < <(echo "$unsupported_files") } main "$@"