diff --git a/src/IO/RemoteReadBufferCache.cpp b/src/IO/RemoteReadBufferCache.cpp index d7781ee27b1..9df0fa25329 100644 --- a/src/IO/RemoteReadBufferCache.cpp +++ b/src/IO/RemoteReadBufferCache.cpp @@ -23,7 +23,6 @@ namespace ErrorCodes { extern const int BAD_ARGUMENTS; extern const int LOGICAL_ERROR; - extern const int CANNOT_CREATE_DIRECTORY; } bool RemoteCacheController::loadInnerInformation(const fs::path & file_path) diff --git a/src/Storages/Hive/StorageHive.cpp b/src/Storages/Hive/StorageHive.cpp index bd53ce22925..49abc8287a4 100644 --- a/src/Storages/Hive/StorageHive.cpp +++ b/src/Storages/Hive/StorageHive.cpp @@ -371,7 +371,7 @@ ASTPtr StorageHive::extractKeyExpressionList(const ASTPtr & node) /// Primary key consists of one column. auto res = std::make_shared(); res->children.push_back(node); - return std::move(res); + return res; } }