mirror of
https://github.com/hanzoai/datastore.git
synced 2026-09-26 13:55:07 +00:00
Fixes after merge with master, move some part of code to object storage
This commit is contained in:
@@ -20,12 +20,10 @@ StoragePtr TableFunctionObjectStorageCluster<Definition, StorageSettings, Config
|
||||
const std::string & table_name, ColumnsDescription /*cached_columns*/, bool is_insert_query) const
|
||||
{
|
||||
using Base = TableFunctionObjectStorage<Definition, StorageSettings, Configuration>;
|
||||
|
||||
auto configuration = Base::getConfiguration();
|
||||
bool structure_argument_was_provided = configuration->structure != "auto";
|
||||
|
||||
ColumnsDescription columns;
|
||||
if (structure_argument_was_provided)
|
||||
if (configuration->structure != "auto")
|
||||
columns = parseColumnsListFromString(configuration->structure, context);
|
||||
else if (!Base::structure_hint.empty())
|
||||
columns = Base::structure_hint;
|
||||
@@ -58,8 +56,7 @@ StoragePtr TableFunctionObjectStorageCluster<Definition, StorageSettings, Config
|
||||
StorageID(Base::getDatabaseName(), table_name),
|
||||
columns,
|
||||
ConstraintsDescription{},
|
||||
context,
|
||||
structure_argument_was_provided);
|
||||
context);
|
||||
}
|
||||
|
||||
storage->startup();
|
||||
|
||||
Reference in New Issue
Block a user