mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
enable fuzzing of table definitions
This commit is contained in:
parent
00144bb6a9
commit
0ba886f763
@ -220,6 +220,7 @@ quit
|
||||
--receive_data_timeout_ms=10000 \
|
||||
--stacktrace \
|
||||
--query-fuzzer-runs=1000 \
|
||||
--create-query-fuzzer-runs=30 \
|
||||
--queries-file $(ls -1 ch/tests/queries/0_stateless/*.sql | sort -R) \
|
||||
$NEW_TESTS_OPT \
|
||||
> >(tail -n 100000 > fuzzer.log) \
|
||||
|
@ -448,7 +448,7 @@ void QueryFuzzer::fuzzCreateQuery(ASTCreateQuery & create)
|
||||
if (create.columns_list)
|
||||
create.columns_list->updateTreeHash(sip_hash);
|
||||
if (create.storage)
|
||||
create.columns_list->updateTreeHash(sip_hash);
|
||||
create.storage->updateTreeHash(sip_hash);
|
||||
|
||||
IAST::Hash hash;
|
||||
sip_hash.get128(hash);
|
||||
@ -558,7 +558,7 @@ DataTypePtr QueryFuzzer::getRandomType()
|
||||
|
||||
#define DISPATCH(DECIMAL) \
|
||||
if (type_id == TypeIndex::DECIMAL) \
|
||||
return std::make_shared<DataTypeDecimal<DECIMAL>>( \
|
||||
return std::make_shared<DataTypeDecimal<DECIMAL>>( \ // NOLINT
|
||||
DataTypeDecimal<DECIMAL>::maxPrecision(), DataTypeDecimal<DECIMAL>::maxPrecision()); // NOLINT
|
||||
|
||||
DISPATCH(Decimal32)
|
||||
|
Loading…
Reference in New Issue
Block a user