mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
59844b0a9d
Accepts CH client queries in the form of SHOW FUNCTIONS [LIKE | ILIKE '< pattern>'] Retrieves all columns from `functions` table in system database. Fixes #52757
15 lines
582 B
Bash
Executable File
15 lines
582 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
# shellcheck source=../shell_config.sh
|
|
. "$CURDIR"/../shell_config.sh
|
|
|
|
diff -q <($CLICKHOUSE_CLIENT -q "SELECT * from system.functions") \
|
|
<($CLICKHOUSE_CLIENT -q "SHOW FUNCTIONS")
|
|
|
|
diff -q <($CLICKHOUSE_CLIENT -q "SELECT * FROM system.functions WHERE name ILIKE 'quantile%'") \
|
|
<($CLICKHOUSE_CLIENT -q "SHOW FUNCTIONS ILIKE 'quantile%'")
|
|
|
|
diff -q <($CLICKHOUSE_CLIENT -q "SELECT * FROM system.functions WHERE name LIKE 'median%'") \
|
|
<($CLICKHOUSE_CLIENT -q "SHOW FUNCTIONS LIKE 'median%'")
|