mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 01:51:59 +00:00
Fixed error [#METR-2944].
This commit is contained in:
parent
28732f6a7c
commit
bee6183d35
@ -130,7 +130,7 @@ void ReplicatedMergeTreeBlockOutputStream::write(const Block & block)
|
||||
union
|
||||
{
|
||||
char bytes[16];
|
||||
UInt64 lo, hi;
|
||||
UInt64 words[2];
|
||||
} hash_value;
|
||||
hash.get128(hash_value.bytes);
|
||||
|
||||
@ -141,7 +141,7 @@ void ReplicatedMergeTreeBlockOutputStream::write(const Block & block)
|
||||
/// Можно для этого сделать настройку или синтаксис в запросе (например, ID=null).
|
||||
if (block_id.empty())
|
||||
{
|
||||
block_id = toString(hash_value.lo) + "_" + toString(hash_value.hi);
|
||||
block_id = toString(hash_value.words[0]) + "_" + toString(hash_value.words[1]);
|
||||
|
||||
if (block_id.empty())
|
||||
throw Exception("Logical error: block_id is empty.", ErrorCodes::LOGICAL_ERROR);
|
||||
|
Loading…
Reference in New Issue
Block a user