ClickHouse/tests/queries/0_stateless/02476_fix_lambda_parsing.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
348 B
Bash
Raw Normal View History

2022-11-05 01:30:07 +00:00
#!/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, tuple(y)) -> z)" | $format
echo "select f(x, tuple(y) -> z)" | $format
echo "select f(x, y -> z)" | $format
echo "select f((x, y) -> z)" | $format