mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
fix
This commit is contained in:
parent
85aa71c377
commit
8dbb2a3ed9
@ -4,6 +4,7 @@
|
||||
#include <Poco/Foundation.h>
|
||||
#include <Poco/Path.h>
|
||||
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
|
||||
class FileLogDirectoryWatcher
|
||||
|
@ -14,7 +14,6 @@ namespace DB
|
||||
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int CANNOT_COMMIT_OFFSET;
|
||||
}
|
||||
|
||||
ReadBufferFromFileLog::ReadBufferFromFileLog(
|
||||
|
@ -38,9 +38,7 @@ namespace DB
|
||||
|
||||
namespace ErrorCodes
|
||||
{
|
||||
extern const int NOT_IMPLEMENTED;
|
||||
extern const int LOGICAL_ERROR;
|
||||
extern const int BAD_ARGUMENTS;
|
||||
extern const int NUMBER_OF_ARGUMENTS_DOESNT_MATCH;
|
||||
}
|
||||
|
||||
@ -270,7 +268,8 @@ void registerStorageFileLog(StorageFactory & factory)
|
||||
size_t args_count = engine_args.size();
|
||||
|
||||
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 format_ast = evaluateConstantExpressionAsLiteral(engine_args[1], args.getContext());
|
||||
|
Loading…
Reference in New Issue
Block a user