|
|
using | RETURN_TYPE = string |
|
|
static constexpr const char * | Name = "disabled_optimizers" |
|
static constexpr const char * | Description = "DEBUG SETTING: disable a specific set of optimizers (comma separated)" |
|
static constexpr const char * | InputType = "VARCHAR" |
◆ SetGlobal()
302009 {
302011 set<OptimizerType> disabled_optimizers;
302012 for (auto &entry : list) {
302015 if (param.empty()) {
302016 continue;
302017 }
302018 disabled_optimizers.insert(OptimizerTypeFromString(param));
302019 }
302021}
static DUCKDB_API void Trim(string &str)
Remove the whitespace char in the left and right end of the string.
Definition duckdb.cpp:109372
static DUCKDB_API vector< string > Split(const string &str, char delimiter)
Split the input string based on newline char.
Definition duckdb.cpp:109734
static DUCKDB_API string Lower(const string &str)
Convert a string to lowercase.
Definition duckdb.cpp:109630
set< OptimizerType > disabled_optimizers
The set of disabled optimizers (default empty).
Definition duckdb.hpp:40026
DBConfigOptions options
Database configuration options.
Definition duckdb.hpp:40090
◆ ResetGlobal()
◆ GetSetting()
302027 {
302028 auto &config = DBConfig::GetConfig(context);
302029 string result;
302030 for (auto &optimizer : config.options.disabled_optimizers) {
302031 if (!result.empty()) {
302032 result += ",";
302033 }
302034 result += OptimizerTypeToString(optimizer);
302035 }
302036 return Value(result);
302037}
The documentation for this struct was generated from the following file: