diff --git a/dbms/src/TableFunctions/TableFunctionFile.cpp b/dbms/src/TableFunctions/TableFunctionFile.cpp index 19389771e8e..715eb8aa0a2 100644 --- a/dbms/src/TableFunctions/TableFunctionFile.cpp +++ b/dbms/src/TableFunctions/TableFunctionFile.cpp @@ -47,10 +47,10 @@ namespace DB std::string path = static_cast(*args[0]).value.safeGet(); std::string format = static_cast(*args[1]).value.safeGet(); std::string structure = static_cast(*args[2]).value.safeGet(); - bool useStorageMemory = false; + uint8_t useStorageMemory = 0; if (args.size() == 4) - useStorageMemory = static_cast(*args[2]).value.safeGet(); + useStorageMemory = static_cast(*args[2]).value.safeGet(); std::string db_data_path = context.getPath() + "data/" + escapeForFileName(context.getCurrentDatabase());