https://pastila.nl/?00ad187f/ecfb3d92d2e879533cc3aea0536ab3d7

22.3 Exception on client:
Code: 49. DB::Exception: offsets_column has data inconsistent with nested_column: data for INSERT was parsed from query. (LOGICAL_ERROR)

22.7 the insert hangs

21.8.4 Received exception from server (version 21.8.4): Code: 62. DB::Exception: Received from localhost:9000. DB::Exception: Empty query.


{
    auto s = offsets->size();
    if (hash.getData().size() != s)
        throw Exception("Size of WeakHash32 does not match size of column: column size is " + std::to_string(s) +
                        ", hash size is " + std::to_string(hash.getData().size()), ErrorCodes::LOGICAL_ERROR);
    WeakHash32 internal_hash(data->size());
    data->updateWeakHash32(internal_hash);
    Offset prev_offset = 0;
    const auto & offsets_data = getOffsets();
    auto & hash_data = hash.getData();
    auto & internal_hash_data = internal_hash.getData();
    for (size_t i = 0; i < s; ++i)
    {
        
        
        hash_data[i] = intHashCRC32(hash_data[i]);
        for (size_t row = prev_offset; row < offsets_data[i]; ++row)
            
            
            
            hash_data[i] = intHashCRC32(internal_hash_data[row], hash_data[i]);
        prev_offset = offsets_data[i];
    }
}
void ColumnArray::updateHashFast(SipHash & hash) const