mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Add a test
This commit is contained in:
parent
accc63500d
commit
b322be55b2
10
tests/queries/0_stateless/02990_format_lambdas.reference
Normal file
10
tests/queries/0_stateless/02990_format_lambdas.reference
Normal file
@ -0,0 +1,10 @@
|
||||
SELECT lambda(1, 1)
|
||||
SELECT lambda(1, 1)
|
||||
SELECT x -> 1
|
||||
SELECT x -> 1
|
||||
SELECT (x, y) -> 1
|
||||
SELECT (x, y) -> 1
|
||||
SELECT lambda(f(1), 1)
|
||||
SELECT lambda(f(1), 1)
|
||||
SELECT lambda(f(x), 1)
|
||||
SELECT lambda(f(x), 1)
|
11
tests/queries/0_stateless/02990_format_lambdas.sh
Executable file
11
tests/queries/0_stateless/02990_format_lambdas.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
# shellcheck source=../shell_config.sh
|
||||
. "$CURDIR"/../shell_config.sh
|
||||
|
||||
QUERY="SELECT lambda(1, 1)"; QUERY2=$(${CLICKHOUSE_FORMAT} --query "$QUERY"); echo "$QUERY2"; QUERY3=$(${CLICKHOUSE_FORMAT} --query "$QUERY2"); echo "$QUERY3";
|
||||
QUERY="SELECT lambda(x, 1)"; QUERY2=$(${CLICKHOUSE_FORMAT} --query "$QUERY"); echo "$QUERY2"; QUERY3=$(${CLICKHOUSE_FORMAT} --query "$QUERY2"); echo "$QUERY3";
|
||||
QUERY="SELECT lambda((x, y), 1)"; QUERY2=$(${CLICKHOUSE_FORMAT} --query "$QUERY"); echo "$QUERY2"; QUERY3=$(${CLICKHOUSE_FORMAT} --query "$QUERY2"); echo "$QUERY3";
|
||||
QUERY="SELECT lambda(f(1), 1)"; QUERY2=$(${CLICKHOUSE_FORMAT} --query "$QUERY"); echo "$QUERY2"; QUERY3=$(${CLICKHOUSE_FORMAT} --query "$QUERY2"); echo "$QUERY3";
|
||||
QUERY="SELECT lambda(f(x), 1)"; QUERY2=$(${CLICKHOUSE_FORMAT} --query "$QUERY"); echo "$QUERY2"; QUERY3=$(${CLICKHOUSE_FORMAT} --query "$QUERY2"); echo "$QUERY3";
|
Loading…
Reference in New Issue
Block a user