mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 00:52:02 +00:00
Fix style
This commit is contained in:
parent
c5ca63c606
commit
923d6759c0
@ -41,7 +41,6 @@ namespace ErrorCodes
|
|||||||
extern const int ILLEGAL_SYNTAX_FOR_CODEC_TYPE;
|
extern const int ILLEGAL_SYNTAX_FOR_CODEC_TYPE;
|
||||||
extern const int ILLEGAL_CODEC_PARAMETER;
|
extern const int ILLEGAL_CODEC_PARAMETER;
|
||||||
extern const int BAD_ARGUMENTS;
|
extern const int BAD_ARGUMENTS;
|
||||||
extern const int CANNOT_DECOMPRESS;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CompressionCodecDelta::CompressionCodecDelta(UInt8 delta_bytes_size_)
|
CompressionCodecDelta::CompressionCodecDelta(UInt8 delta_bytes_size_)
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
/**
|
||||||
|
* This file contains a part of CompressionCodecFactory methods definitions and
|
||||||
|
* is needed only because they have dependencies on DataTypes.
|
||||||
|
* They are not useful for fuzzers, so we leave them in other translation unit.
|
||||||
|
*/
|
||||||
|
|
||||||
#include <Compression/CompressionFactory.h>
|
#include <Compression/CompressionFactory.h>
|
||||||
|
|
||||||
#include <Parsers/ASTFunction.h>
|
#include <Parsers/ASTFunction.h>
|
||||||
@ -20,6 +26,8 @@ namespace ErrorCodes
|
|||||||
{
|
{
|
||||||
extern const int UNEXPECTED_AST_STRUCTURE;
|
extern const int UNEXPECTED_AST_STRUCTURE;
|
||||||
extern const int UNKNOWN_CODEC;
|
extern const int UNKNOWN_CODEC;
|
||||||
|
extern const int BAD_ARGUMENTS;
|
||||||
|
extern const int LOGICAL_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -43,6 +51,7 @@ void CompressionCodecFactory::validateCodec(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ASTPtr CompressionCodecFactory::validateCodecAndGetPreprocessedAST(
|
ASTPtr CompressionCodecFactory::validateCodecAndGetPreprocessedAST(
|
||||||
const ASTPtr & ast, const IDataType * column_type, bool sanity_check, bool allow_experimental_codecs) const
|
const ASTPtr & ast, const IDataType * column_type, bool sanity_check, bool allow_experimental_codecs) const
|
||||||
{
|
{
|
||||||
@ -202,5 +211,4 @@ ASTPtr CompressionCodecFactory::validateCodecAndGetPreprocessedAST(
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
add_executable (compressed_buffer compressed_buffer.cpp)
|
add_executable (compressed_buffer compressed_buffer.cpp)
|
||||||
target_link_libraries (compressed_buffer PRIVATE fuzz_compression common)
|
target_link_libraries (compressed_buffer PRIVATE dbms)
|
||||||
|
|
||||||
add_executable (cached_compressed_read_buffer cached_compressed_read_buffer.cpp)
|
add_executable (cached_compressed_read_buffer cached_compressed_read_buffer.cpp)
|
||||||
target_link_libraries (cached_compressed_read_buffer PRIVATE fuzz_compression common)
|
target_link_libraries (cached_compressed_read_buffer PRIVATE dbms)
|
||||||
|
@ -5,16 +5,16 @@
|
|||||||
# If you want really small size of the resulted binary, just link with fuzz_compression and clickhouse_common_io
|
# If you want really small size of the resulted binary, just link with fuzz_compression and clickhouse_common_io
|
||||||
|
|
||||||
add_executable (compressed_buffer_fuzzer compressed_buffer_fuzzer.cpp)
|
add_executable (compressed_buffer_fuzzer compressed_buffer_fuzzer.cpp)
|
||||||
target_link_libraries (compressed_buffer_fuzzer PRIVATE fuzz_compression ${LIB_FUZZING_ENGINE})
|
target_link_libraries (compressed_buffer_fuzzer PRIVATE dbms ${LIB_FUZZING_ENGINE})
|
||||||
|
|
||||||
add_executable (lz4_decompress_fuzzer lz4_decompress_fuzzer.cpp)
|
add_executable (lz4_decompress_fuzzer lz4_decompress_fuzzer.cpp)
|
||||||
target_link_libraries (lz4_decompress_fuzzer PUBLIC fuzz_compression lz4 ${LIB_FUZZING_ENGINE})
|
target_link_libraries (lz4_decompress_fuzzer PUBLIC dbms lz4 ${LIB_FUZZING_ENGINE})
|
||||||
|
|
||||||
add_executable (delta_decompress_fuzzer delta_decompress_fuzzer.cpp)
|
add_executable (delta_decompress_fuzzer delta_decompress_fuzzer.cpp)
|
||||||
target_link_libraries (delta_decompress_fuzzer PRIVATE fuzz_compression ${LIB_FUZZING_ENGINE})
|
target_link_libraries (delta_decompress_fuzzer PRIVATE dbms ${LIB_FUZZING_ENGINE})
|
||||||
|
|
||||||
add_executable (double_delta_decompress_fuzzer double_delta_decompress_fuzzer.cpp)
|
add_executable (double_delta_decompress_fuzzer double_delta_decompress_fuzzer.cpp)
|
||||||
target_link_libraries (double_delta_decompress_fuzzer PRIVATE fuzz_compression ${LIB_FUZZING_ENGINE})
|
target_link_libraries (double_delta_decompress_fuzzer PRIVATE dbms ${LIB_FUZZING_ENGINE})
|
||||||
|
|
||||||
add_executable (encrypted_decompress_fuzzer encrypted_decompress_fuzzer.cpp)
|
add_executable (encrypted_decompress_fuzzer encrypted_decompress_fuzzer.cpp)
|
||||||
target_link_libraries (encrypted_decompress_fuzzer PRIVATE fuzz_compression ${LIB_FUZZING_ENGINE})
|
target_link_libraries (encrypted_decompress_fuzzer PRIVATE dbms ${LIB_FUZZING_ENGINE})
|
||||||
|
Loading…
Reference in New Issue
Block a user