ClickHouse/tests/queries/0_stateless/03003_prql_panic.sh

14 lines
558 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2024-03-05 01:44:20 +00:00
# Tags: no-fasttest
# Requires Rust, which is not built for Fast Test.
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
# Before [1] this causes a panic, but it will be fixed soon, so do not check
# for panic, but just for SYNTAX_ERROR.
#
# [1]: https://github.com/PRQL/prql/pull/4285
$CLICKHOUSE_CLIENT --dialect prql -q "SELECT id FROM distributed_test_table GROUP BY x -> concat(concat(materialize(toNullable(NULL)))) LIMIT 3" |& grep -o -m1 SYNTAX_ERROR