From 0eef092ded352e9b9087c6362d7b443e416f9939 Mon Sep 17 00:00:00 2001 From: taiyang-li <654010905@qq.com> Date: Thu, 9 Dec 2021 16:57:33 +0800 Subject: [PATCH] fix building --- src/IO/RemoteReadBufferCache.cpp | 1 - src/Storages/Hive/StorageHive.cpp | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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; } }