ClickHouse/tests/queries/0_stateless/02476_fix_lambda_parsing.sh
Nikolay Degterinsky 29371745bd Fix lambdas parsing
2022-12-27 17:42:38 +00:00

15 lines
339 B
Bash
Executable File

#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
set -e
format="$CLICKHOUSE_FORMAT"
echo "SELECT f(x, (y) -> z)" | $format
echo "SELECT f(x, y -> z)" | $format
echo "SELECT f((x, y) -> z)" | $format
echo "SELECT f(x, (x, y) -> z)" | $format