mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-19 22:22:00 +00:00
b4384ce2a9
A bad dictionary cannot block all the loading anymore. Implemented really lazy loading of external dictionaries. Provided more detailed information about the loading of each dictionary to make diagnostics easier.
30 lines
1.0 KiB
C++
30 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include <Core/Types.h>
|
|
|
|
namespace Poco::Util
|
|
{
|
|
class AbstractConfiguration;
|
|
}
|
|
|
|
namespace DB
|
|
{
|
|
/// Returns true if two configurations contains the same keys and values.
|
|
bool isSameConfiguration(const Poco::Util::AbstractConfiguration & left,
|
|
const Poco::Util::AbstractConfiguration & right);
|
|
|
|
/// Returns true if specified subviews of the two configurations contains the same keys and values.
|
|
bool isSameConfiguration(const Poco::Util::AbstractConfiguration & left, const String & left_key,
|
|
const Poco::Util::AbstractConfiguration & right, const String & right_key);
|
|
|
|
inline bool operator==(const Poco::Util::AbstractConfiguration & left, const Poco::Util::AbstractConfiguration & right)
|
|
{
|
|
return isSameConfiguration(left, right);
|
|
}
|
|
|
|
inline bool operator!=(const Poco::Util::AbstractConfiguration & left, const Poco::Util::AbstractConfiguration & right)
|
|
{
|
|
return !isSameConfiguration(left, right);
|
|
}
|
|
}
|