mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 17:41:59 +00:00
Remove default value for argument 'ignore_aliases' from IAST::updateTreeHash()
This commit is contained in:
parent
50cd59a72b
commit
b899270372
@ -517,9 +517,9 @@ void QueryFuzzer::fuzzCreateQuery(ASTCreateQuery & create)
|
||||
SipHash sip_hash;
|
||||
sip_hash.update(original_name);
|
||||
if (create.columns_list)
|
||||
create.columns_list->updateTreeHash(sip_hash);
|
||||
create.columns_list->updateTreeHash(sip_hash, /*ignore_aliases=*/ true);
|
||||
if (create.storage)
|
||||
create.storage->updateTreeHash(sip_hash);
|
||||
create.storage->updateTreeHash(sip_hash, /*ignore_aliases=*/ true);
|
||||
|
||||
const auto hash = getSipHash128AsPair(sip_hash);
|
||||
|
||||
|
@ -377,7 +377,7 @@ uint8_t CompressionCodecDeflateQpl::getMethodByte() const
|
||||
|
||||
void CompressionCodecDeflateQpl::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
UInt32 CompressionCodecDeflateQpl::getMaxCompressedDataSize(UInt32 uncompressed_size) const
|
||||
|
@ -56,7 +56,7 @@ uint8_t CompressionCodecDelta::getMethodByte() const
|
||||
|
||||
void CompressionCodecDelta::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
namespace
|
||||
|
@ -466,7 +466,7 @@ uint8_t CompressionCodecDoubleDelta::getMethodByte() const
|
||||
|
||||
void CompressionCodecDoubleDelta::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
hash.update(data_bytes_size);
|
||||
}
|
||||
|
||||
|
@ -576,7 +576,7 @@ uint8_t CompressionCodecEncrypted::getMethodByte() const
|
||||
|
||||
void CompressionCodecEncrypted::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
UInt32 CompressionCodecEncrypted::getMaxCompressedDataSize(UInt32 uncompressed_size) const
|
||||
|
@ -66,7 +66,7 @@ uint8_t CompressionCodecFPC::getMethodByte() const
|
||||
|
||||
void CompressionCodecFPC::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
CompressionCodecFPC::CompressionCodecFPC(UInt8 float_size, UInt8 compression_level)
|
||||
|
@ -64,7 +64,7 @@ uint8_t CompressionCodecGCD::getMethodByte() const
|
||||
|
||||
void CompressionCodecGCD::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
namespace
|
||||
|
@ -364,7 +364,7 @@ uint8_t CompressionCodecGorilla::getMethodByte() const
|
||||
|
||||
void CompressionCodecGorilla::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
hash.update(data_bytes_size);
|
||||
}
|
||||
|
||||
|
@ -78,7 +78,7 @@ uint8_t CompressionCodecLZ4::getMethodByte() const
|
||||
|
||||
void CompressionCodecLZ4::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
UInt32 CompressionCodecLZ4::getMaxCompressedDataSize(UInt32 uncompressed_size) const
|
||||
|
@ -18,7 +18,7 @@ uint8_t CompressionCodecNone::getMethodByte() const
|
||||
|
||||
void CompressionCodecNone::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
UInt32 CompressionCodecNone::doCompressData(const char * source, UInt32 source_size, char * dest) const
|
||||
|
@ -723,7 +723,7 @@ CompressionCodecT64::CompressionCodecT64(std::optional<TypeIndex> type_idx_, Var
|
||||
|
||||
void CompressionCodecT64::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
hash.update(type_idx.value_or(TypeIndex::Nothing));
|
||||
hash.update(variant);
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ uint8_t CompressionCodecZSTD::getMethodByte() const
|
||||
|
||||
void CompressionCodecZSTD::updateHash(SipHash & hash) const
|
||||
{
|
||||
getCodecDesc()->updateTreeHash(hash);
|
||||
getCodecDesc()->updateTreeHash(hash, /*ignore_aliases=*/ true);
|
||||
}
|
||||
|
||||
UInt32 CompressionCodecZSTD::getMaxCompressedDataSize(UInt32 uncompressed_size) const
|
||||
|
@ -85,7 +85,7 @@ AsynchronousInsertQueue::InsertQuery::InsertQuery(
|
||||
SipHash siphash;
|
||||
|
||||
siphash.update(data_kind);
|
||||
query->updateTreeHash(siphash);
|
||||
query->updateTreeHash(siphash, /*ignore_aliases=*/ true);
|
||||
|
||||
if (user_id)
|
||||
{
|
||||
|
@ -83,7 +83,7 @@ public:
|
||||
*/
|
||||
using Hash = CityHash_v1_0_2::uint128;
|
||||
Hash getTreeHash(bool ignore_aliases) const;
|
||||
void updateTreeHash(SipHash & hash_state, bool ignore_aliases = true) const;
|
||||
void updateTreeHash(SipHash & hash_state, bool ignore_aliases) const;
|
||||
virtual void updateTreeHashImpl(SipHash & hash_state, bool ignore_aliases) const;
|
||||
|
||||
void dumpTree(WriteBuffer & ostr, size_t indent = 0) const;
|
||||
|
@ -393,7 +393,7 @@ size_t ConstantExpressionTemplate::TemplateStructure::getTemplateHash(const ASTP
|
||||
SipHash hash_state;
|
||||
hash_state.update(result_column_type->getName());
|
||||
|
||||
expression->updateTreeHash(hash_state);
|
||||
expression->updateTreeHash(hash_state, /*ignore_aliases=*/ true);
|
||||
|
||||
for (const auto & info : replaced_literals)
|
||||
hash_state.update(info.type->getName());
|
||||
|
Loading…
Reference in New Issue
Block a user