Fix compilation on osx (where UInt64 and size_t is different)

This commit is contained in:
Azat Khuzhin 2020-05-23 20:28:40 +03:00
parent 8c69245283
commit aa656f95dd

View File

@ -275,7 +275,7 @@ QueryPipeline InterpreterSelectWithUnionQuery::executeWithProcessors()
// nested queries can force 1 thread (due to simplicity)
// but in case of union this cannot be done.
UInt64 max_threads = context->getSettingsRef().max_threads;
main_pipeline.setMaxThreads(std::min(nested_interpreters.size(), max_threads));
main_pipeline.setMaxThreads(std::min<UInt64>(nested_interpreters.size(), max_threads));
}
main_pipeline.addInterpreterContext(context);