Merge pull request #66130 from slvrtrn/update-avro-submodule-with-array-block-size-fix

Update AVRO submodule with the array block size fix
This commit is contained in:
Kruglov Pavel 2024-07-09 07:58:04 +00:00 committed by GitHub
commit 52b3d1a244
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 1 deletions

2
contrib/avro vendored

@ -1 +1 @@
Subproject commit d43acc84d3d455b016f847d6666fbc3cd27f16a9
Subproject commit 545e7002683cbc2198164d93088ac8e4955b4628

View File

@ -0,0 +1,11 @@
str_array Array(String)
1318
5779
1715
6422
5875
1887
3763
4245
4270
758

View File

@ -0,0 +1,14 @@
#!/usr/bin/env bash
# Tags: no-parallel, no-fasttest
set -e
CUR_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CUR_DIR"/../shell_config.sh
DATA_DIR=$CUR_DIR/data_avro
# See https://github.com/ClickHouse/ClickHouse/issues/60438
$CLICKHOUSE_LOCAL -q "DESC file('$DATA_DIR/negative_block_size_arrays.avro')"
$CLICKHOUSE_LOCAL -q "SELECT arraySum(arrayMap(x -> length(x), str_array)) AS res FROM file('$DATA_DIR/negative_block_size_arrays.avro')"