Less deps for SettingsEnums.h

This commit is contained in:
Raúl Marín 2024-07-10 19:43:50 +02:00
parent b08be12252
commit 71afe96e0f
4 changed files with 19 additions and 12 deletions

View File

@ -3,6 +3,7 @@
#include <Core/Joins.h> #include <Core/Joins.h>
#include <Core/LogsLevel.h> #include <Core/LogsLevel.h>
#include <Core/SettingsFields.h> #include <Core/SettingsFields.h>
#include <Core/ShortCircuitFunctionEvaluation.h>
#include <Formats/FormatSettings.h> #include <Formats/FormatSettings.h>
#include <IO/ReadSettings.h> #include <IO/ReadSettings.h>
#include <Parsers/ASTSQLSecurity.h> #include <Parsers/ASTSQLSecurity.h>
@ -292,13 +293,6 @@ enum class StreamingHandleErrorMode : uint8_t
DECLARE_SETTING_ENUM(StreamingHandleErrorMode) DECLARE_SETTING_ENUM(StreamingHandleErrorMode)
enum class ShortCircuitFunctionEvaluation : uint8_t
{
ENABLE, // Use short-circuit function evaluation for functions that are suitable for it.
FORCE_ENABLE, // Use short-circuit function evaluation for all functions.
DISABLE, // Disable short-circuit function evaluation.
};
DECLARE_SETTING_ENUM(ShortCircuitFunctionEvaluation) DECLARE_SETTING_ENUM(ShortCircuitFunctionEvaluation)
enum class TransactionsWaitCSNMode : uint8_t enum class TransactionsWaitCSNMode : uint8_t

View File

@ -0,0 +1,15 @@
#pragma once
#include <cstdint>
namespace DB
{
enum class ShortCircuitFunctionEvaluation : uint8_t
{
ENABLE, // Use short-circuit function evaluation for functions that are suitable for it.
FORCE_ENABLE, // Use short-circuit function evaluation for all functions.
DISABLE, // Disable short-circuit function evaluation.
};
}

View File

@ -1,7 +1,7 @@
#pragma once #pragma once
#include <Core/ShortCircuitFunctionEvaluation.h>
#include <Interpreters/Context_fwd.h> #include <Interpreters/Context_fwd.h>
#include <Core/SettingsEnums.h>
#include <cstddef> #include <cstddef>

View File

@ -2,21 +2,19 @@
#include "config.h" #include "config.h"
#include <filesystem> #include <filesystem>
#include <Core/Types.h>
#include <Core/SettingsEnums.h>
#include <Core/BackgroundSchedulePool.h> #include <Core/BackgroundSchedulePool.h>
#include <Common/ZooKeeper/ZooKeeper.h> #include <Core/Types.h>
#include <Storages/ObjectStorage/StorageObjectStorage.h> #include <Storages/ObjectStorage/StorageObjectStorage.h>
#include <Storages/ObjectStorageQueue/ObjectStorageQueueIFileMetadata.h> #include <Storages/ObjectStorageQueue/ObjectStorageQueueIFileMetadata.h>
#include <Storages/ObjectStorageQueue/ObjectStorageQueueOrderedFileMetadata.h> #include <Storages/ObjectStorageQueue/ObjectStorageQueueOrderedFileMetadata.h>
#include <Storages/ObjectStorageQueue/ObjectStorageQueueSettings.h> #include <Storages/ObjectStorageQueue/ObjectStorageQueueSettings.h>
#include <Common/ZooKeeper/ZooKeeper.h>
namespace fs = std::filesystem; namespace fs = std::filesystem;
namespace Poco { class Logger; } namespace Poco { class Logger; }
namespace DB namespace DB
{ {
struct ObjectStorageQueueSettings;
class StorageObjectStorageQueue; class StorageObjectStorageQueue;
struct ObjectStorageQueueTableMetadata; struct ObjectStorageQueueTableMetadata;
struct StorageInMemoryMetadata; struct StorageInMemoryMetadata;