mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
Fix partition ID byte order for s390x
This commit is contained in:
parent
15893fa94e
commit
ed1ff02114
@ -261,8 +261,11 @@ String MergeTreePartition::getID(const Block & partition_key_sample) const
|
||||
hash.get128(hash_data);
|
||||
result.resize(32);
|
||||
for (size_t i = 0; i < 16; ++i)
|
||||
#if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
|
||||
writeHexByteLowercase(hash_data[16 - 1 - i], &result[2 * i]);
|
||||
#else
|
||||
writeHexByteLowercase(hash_data[i], &result[2 * i]);
|
||||
|
||||
#endif
|
||||
return result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user