mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Add a test for PRQL panics
Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
parent
e257f1d455
commit
dc7ea2f90a
1
tests/queries/0_stateless/03003_prql_panic.reference
Normal file
1
tests/queries/0_stateless/03003_prql_panic.reference
Normal file
@ -0,0 +1 @@
|
||||
SYNTAX_ERROR
|
11
tests/queries/0_stateless/03003_prql_panic.sh
Executable file
11
tests/queries/0_stateless/03003_prql_panic.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
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
|
Loading…
Reference in New Issue
Block a user