ClickHouse/src/Storages/StorageLogSettings.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
436 B
C++
Raw Normal View History

#include "StorageLogSettings.h"
#include <Parsers/ASTCreateQuery.h>
#include <Parsers/ASTSetQuery.h>
namespace DB
{
String getDiskName(ASTStorage & storage_def)
{
if (storage_def.settings)
{
SettingsChanges changes = storage_def.settings->changes;
2020-03-09 01:22:33 +00:00
for (const auto & change : changes)
if (change.name == "disk")
return change.value.safeGet<String>();
}
return "default";
}
}