mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Merge pull request #52870 from Avogar/fix-misleading-error
Fix misleading error message in OUTFILE with CapnProto/Protobuf
This commit is contained in:
commit
77dd2a556a
@ -1071,6 +1071,8 @@ void ClientBase::receiveResult(ASTPtr parsed_query, Int32 signals_before_stop, b
|
||||
}
|
||||
catch (const LocalFormatError &)
|
||||
{
|
||||
/// Remember the first exception.
|
||||
if (!local_format_error)
|
||||
local_format_error = std::current_exception();
|
||||
connection->sendCancel();
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
1
|
11
tests/queries/0_stateless/02842_capn_proto_outfile_without_schema.sh
Executable file
11
tests/queries/0_stateless/02842_capn_proto_outfile_without_schema.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#!/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
|
||||
|
||||
|
||||
$CLICKHOUSE_LOCAL -q "select * from numbers(10) into outfile '$CLICKHOUSE_TEST_UNIQUE_NAME.capnp' settings format_capn_proto_use_autogenerated_schema=0" 2>&1 | grep "The format CapnProto requires a schema" -c
|
||||
rm $CLICKHOUSE_TEST_UNIQUE_NAME.capnp
|
||||
|
Loading…
Reference in New Issue
Block a user