mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-16 03:12:43 +00:00
fix
This commit is contained in:
parent
85aa71c377
commit
8dbb2a3ed9
@ -4,6 +4,7 @@
|
|||||||
#include <Poco/Foundation.h>
|
#include <Poco/Foundation.h>
|
||||||
#include <Poco/Path.h>
|
#include <Poco/Path.h>
|
||||||
|
|
||||||
|
#include <memory>
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
|
|
||||||
class FileLogDirectoryWatcher
|
class FileLogDirectoryWatcher
|
||||||
|
@ -14,7 +14,6 @@ namespace DB
|
|||||||
|
|
||||||
namespace ErrorCodes
|
namespace ErrorCodes
|
||||||
{
|
{
|
||||||
extern const int CANNOT_COMMIT_OFFSET;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ReadBufferFromFileLog::ReadBufferFromFileLog(
|
ReadBufferFromFileLog::ReadBufferFromFileLog(
|
||||||
|
@ -38,9 +38,7 @@ namespace DB
|
|||||||
|
|
||||||
namespace ErrorCodes
|
namespace ErrorCodes
|
||||||
{
|
{
|
||||||
extern const int NOT_IMPLEMENTED;
|
|
||||||
extern const int LOGICAL_ERROR;
|
extern const int LOGICAL_ERROR;
|
||||||
extern const int BAD_ARGUMENTS;
|
|
||||||
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
|
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -270,7 +268,8 @@ void registerStorageFileLog(StorageFactory & factory)
|
|||||||
size_t args_count = engine_args.size();
|
size_t args_count = engine_args.size();
|
||||||
|
|
||||||
if (args_count != 2)
|
if (args_count != 2)
|
||||||
throw Exception("Arguments size of StorageFileLog should be 2, path and format name", ErrorCodes::BAD_ARGUMENTS);
|
throw Exception(
|
||||||
|
"Arguments size of StorageFileLog should be 2, path and format name", ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||||
|
|
||||||
auto path_ast = evaluateConstantExpressionAsLiteral(engine_args[0], args.getContext());
|
auto path_ast = evaluateConstantExpressionAsLiteral(engine_args[0], args.getContext());
|
||||||
auto format_ast = evaluateConstantExpressionAsLiteral(engine_args[1], args.getContext());
|
auto format_ast = evaluateConstantExpressionAsLiteral(engine_args[1], args.getContext());
|
||||||
|
Loading…
Reference in New Issue
Block a user