mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
40 lines
1.2 KiB
C++
40 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#include "config.h"
|
|
|
|
#if USE_HIVE
|
|
|
|
#include <Poco/Util/AbstractConfiguration.h>
|
|
#include <Core/BaseSettings.h>
|
|
#include <Core/Settings.h>
|
|
|
|
namespace DB
|
|
{
|
|
class ASTStorage;
|
|
|
|
#define HIVE_RELATED_SETTINGS(M, ALIAS) \
|
|
M(Char, hive_text_field_delimeter, '\x01', "How to split one row of hive data with format text", 0) \
|
|
M(Bool, enable_orc_stripe_minmax_index, false, "Enable using ORC stripe level minmax index.", 0) \
|
|
M(Bool, enable_parquet_rowgroup_minmax_index, false, "Enable using Parquet row-group level minmax index.", 0) \
|
|
M(Bool, enable_orc_file_minmax_index, true, "Enable using ORC file level minmax index.", 0)
|
|
|
|
#define LIST_OF_HIVE_SETTINGS(M, ALIAS) \
|
|
HIVE_RELATED_SETTINGS(M, ALIAS) \
|
|
LIST_OF_ALL_FORMAT_SETTINGS(M, ALIAS)
|
|
|
|
DECLARE_SETTINGS_TRAITS(HiveSettingsTraits, LIST_OF_HIVE_SETTINGS)
|
|
|
|
|
|
/** Settings for the Hive engine.
|
|
* Could be loaded from a CREATE TABLE query (SETTINGS clause).
|
|
*/
|
|
class HiveSettings : public BaseSettings<HiveSettingsTraits>
|
|
{
|
|
public:
|
|
void loadFromConfig(const String & config_elem, const Poco::Util::AbstractConfiguration & config);
|
|
void loadFromQuery(ASTStorage & storage_def);
|
|
};
|
|
}
|
|
|
|
#endif
|