2023-07-27 12:20:33 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
# Tags: no-fasttest
|
|
|
|
|
|
|
|
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|
|
|
# shellcheck source=../shell_config.sh
|
|
|
|
. "$CUR_DIR"/../shell_config.sh
|
|
|
|
|
2023-07-28 09:39:06 +00:00
|
|
|
$CLICKHOUSE_CLIENT -q "select count() from url('http://localhost:11111/test%2Fa.tsv') settings enable_url_encoding=1"
|
2023-07-27 12:20:33 +00:00
|
|
|
|
|
|
|
# Grep 'test%2Fa.tsv' to ensure that path wasn't encoded/decoded
|
2024-03-03 13:22:40 +00:00
|
|
|
$CLICKHOUSE_CLIENT -q "select count() from url('http://localhost:11111/test%2Fa.tsv') settings enable_url_encoding=0" 2>&1 | \
|
|
|
|
grep -o "test%2Fa.tsv" -m1 | head -n 1
|