ClickHouse/tests/queries/0_stateless/02705_protobuf_debug_abort.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
522 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-04-04 14:44:52 +00:00
# Tags: no-fasttest
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
echo 'syntax = "proto3";
message Message {
NotExisted x = 1;
2023-04-04 14:44:52 +00:00
}' > 02705_schema_$CLICKHOUSE_TEST_UNIQUE_NAME.proto
2023-04-04 14:44:52 +00:00
$CLICKHOUSE_LOCAL -q "select * from file(data.bin, Protobuf) settings format_schema='02705_schema_$CLICKHOUSE_TEST_UNIQUE_NAME:Message'" 2>&1 | grep -c "CANNOT_PARSE_PROTOBUF_SCHEMA"
2023-04-04 14:44:52 +00:00
rm 02705_schema_$CLICKHOUSE_TEST_UNIQUE_NAME.proto