enable fuzzing of table definitions

This commit is contained in:
Anton Popov 2022-08-11 12:24:15 +00:00
parent 00144bb6a9
commit 0ba886f763
2 changed files with 3 additions and 2 deletions

View File

@ -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) \

View File

@ -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)