Remove default value for argument 'ignore_aliases' from IAST::updateTreeHash()

This commit is contained in:
Robert Schulze 2023-11-13 10:32:48 +00:00
parent 50cd59a72b
commit b899270372
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
15 changed files with 16 additions and 16 deletions

View File

@ -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);

View File

@ -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

View File

@ -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

View File

@ -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);
}

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -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);
}

View File

@ -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

View File

@ -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

View File

@ -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);
}

View File

@ -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

View File

@ -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)
{

View File

@ -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;

View File

@ -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());