This commit is contained in:
Nikita Taranov 2024-12-01 18:50:55 +01:00
parent b0cd933285
commit 0041fdf497
3 changed files with 19 additions and 1 deletions

View File

@ -1538,7 +1538,7 @@ std::pair<ASTPtr, BlockIO> executeQuery(
? getIdentifierName(ast_query_with_output->format)
: context->getDefaultFormat();
if (format_name == "Null")
if (boost::iequals(format_name, "Null"))
res.null_format = true;
}

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -e
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
query_id="03276_null_format_matching_case_insensitive_$RANDOM$RANDOM"
$CLICKHOUSE_CLIENT --query_id "$query_id" -q "select * from numbers_mt(1e8) format null"
$CLICKHOUSE_CLIENT -q "
SYSTEM FLUSH LOGS;
-- SendBytes should be close to 0, previously for this query it was around 800MB
select ProfileEvents['NetworkSendBytes'] < 1e6 from system.query_log where current_database = currentDatabase() and event_date >= yesterday() and query_id = '$query_id' and type = 'QueryFinish';
"